From c53c0848461e98b36d0e41560f7278c60a18cd76 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Thu, 7 Apr 2022 16:42:14 +0200 Subject: [PATCH] DashletForm: Ensure to pre-select a dashboard when clicking add-dashlet --- application/forms/Dashboard/DashletForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/forms/Dashboard/DashletForm.php b/application/forms/Dashboard/DashletForm.php index 2af8a58a6..df8c8148c 100644 --- a/application/forms/Dashboard/DashletForm.php +++ b/application/forms/Dashboard/DashletForm.php @@ -74,7 +74,7 @@ class DashletForm extends BaseDashboardForm $this->clearPopulatedValue('pane'); } - $populatedPane = $this->getPopulatedValue('pane', reset($panes)); + $populatedPane = $this->getPopulatedValue('pane', $requestUrl->getParam('pane', reset($panes))); $disable = empty($panes) || $populatedHome === self::CREATE_NEW_HOME; $this->addElement('select', 'pane', [ 'class' => 'autosubmit',