From f91e2769fb5cea1f466063c0153315b69ad261d7 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Thu, 9 Jun 2022 13:04:10 +0200 Subject: [PATCH] Show custom dashlet in case no dashlets are selected. --- application/forms/Dashboard/SetupNewDashboardForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/forms/Dashboard/SetupNewDashboardForm.php b/application/forms/Dashboard/SetupNewDashboardForm.php index 41f90d6ae..27f1f7b0c 100644 --- a/application/forms/Dashboard/SetupNewDashboardForm.php +++ b/application/forms/Dashboard/SetupNewDashboardForm.php @@ -156,7 +156,7 @@ class SetupNewDashboardForm extends BaseDashboardForm */ protected function assembleNexPageDashletPart() { - if ($this->getPopulatedValue('custom_url') === 'y' && ! $this->isUpdating()) { + if (empty($this->moduleDashlets) || $this->getPopulatedValue('custom_url') === 'y' && ! $this->isUpdating()) { $this->addHtml(HtmlElement::create('hr')); $this->assembleDashletElements(); }