diff --git a/application/dashboard.class.inc.php b/application/dashboard.class.inc.php index d8a5c95ba..4625d9907 100644 --- a/application/dashboard.class.inc.php +++ b/application/dashboard.class.inc.php @@ -539,7 +539,7 @@ EOF $oPage->add('
'.htmlentities(Dict::S($this->sTitle), ENT_QUOTES, 'UTF-8', false).'
'); /** @var \DashboardLayoutMultiCol $oLayout */ - $oLayout = new $this->sLayoutClass; + $oLayout = new $this->sLayoutClass(); foreach($this->aCells as $iCellIdx => $aDashlets) { @@ -591,19 +591,25 @@ EOF // Toolbox/palette to edit the properties of each dashlet $oPage->add('
'.Dict::S('UI:DashboardEdit:DashletProperties').'
'); + /** @var \DashboardLayoutMultiCol $oLayout */ + $oLayout = new $this->sLayoutClass(); + $oPage->add('
'); - foreach($this->aCells as $aCell) + foreach($this->aCells as $iCellIdx => $aCell) { /** @var \Dashlet $oDashlet */ foreach($aCell as $oDashlet) { + + $aDashletCoordinates = $oLayout->GetDashletCoordinates($iCellIdx); $sId = $oDashlet->GetID(); + $sFinalId = static::GetDashletUniqueId($this->bCustomized, $this->GetSanitizedId(), $aDashletCoordinates[1], $aDashletCoordinates[0], $sId); if ($oDashlet->IsVisible()) { - $oPage->add('