N°5160 - Hiding a DashboardAttribute on the fly does not work - WIP

This commit is contained in:
vdumas
2022-05-17 11:01:18 +02:00
parent c0f0e354dd
commit 05b69208a8

View File

@@ -1732,6 +1732,7 @@ abstract class DBObject implements iDisplay
$iFlags = 0; // By default (if no life cycle) no flag at all
$sClass = get_class($this);
// The code below prevents to hide a DashboardAttribute for eg.
$aReadOnlyAtts = $this->GetReadOnlyAttributes();
if (($aReadOnlyAtts != null) && (in_array($sAttCode, $aReadOnlyAtts)))
{