Show custom dashlet in case no dashlets are selected.

This commit is contained in:
raviks789 2022-06-09 13:04:10 +02:00 committed by Yonas Habteab
parent abb78bb9ee
commit f91e2769fb

View File

@ -156,7 +156,7 @@ class SetupNewDashboardForm extends BaseDashboardForm
*/ */
protected function assembleNexPageDashletPart() 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->addHtml(HtmlElement::create('hr'));
$this->assembleDashletElements(); $this->assembleDashletElements();
} }