Fix default dashlet

This commit is contained in:
Eric Espie
2026-01-19 16:17:38 +01:00
parent 8e16d24d85
commit 805e306712
10 changed files with 55 additions and 28 deletions

View File

@@ -21,8 +21,11 @@ class DashboardLayoutGrid extends \DashboardLayout
$oDashboardLayout->SetGrid($oDashboardGrid);
foreach ($aDashlets as $aPosDashlet) {
/** @var \Dashlet $oDashlet */
if (!array_key_exists('dashlet', $aPosDashlet)) {
continue;
}
$oDashlet = $aPosDashlet['dashlet'];
if ($oDashlet::IsVisible()) {
if ($oDashlet) {
$sDashletId = $oDashlet->GetID();
$sDashletClass = $oDashlet->GetDashletType();
$aDashletDenormalizedProperties = $oDashlet->GetDenormalizedProperties();