From 05b69208a802f1869d73b5f2032b94de690eda76 Mon Sep 17 00:00:00 2001 From: vdumas Date: Tue, 17 May 2022 11:01:18 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B05160=20-=20Hiding=20a=20DashboardAttribu?= =?UTF-8?q?te=20on=20the=20fly=20does=20not=20work=20-=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/dbobject.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/dbobject.class.php b/core/dbobject.class.php index e973be8709..591ac084e9 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -1732,6 +1732,7 @@ public function GetAttributeFlags($sAttCode, &$aReasons = array(), $sTargetState $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))) {