Skip to content
Snippets Groups Projects

Issue #3205269: After resetting an override to default, override form still loads the previous override

Merged Issue #3205269: After resetting an override to default, override form still loads the previous override
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
@@ -133,6 +133,10 @@ class DashboardLayoutBuilderForm extends EntityForm {
$this->account->id(),
$this->sectionStorage->getContextValue(Dashboard::CONTEXT_TYPE)->id()
);
// Delete the tempstore so the override form is reloaded as well.
$this->layoutTempstoreRepository->delete($this->sectionStorage);
$form_state->setRedirectUrl(
Url::fromRoute('entity.dashboard.canonical', [
'dashboard' => $this->sectionStorage->getContextValue(Dashboard::CONTEXT_TYPE)->id(),
Loading