Compare commits

...

8 Commits

Author SHA1 Message Date
Anne-Cath
92ef465e9d reduce changes 2026-06-01 15:01:00 +02:00
Anne-Cath
1d03cf58fb fix comment 2026-05-07 10:11:59 +02:00
Anne-Cath
6efe0f5dac fix comment 2026-04-20 10:36:37 +02:00
Anne-Cath
ef720cf0be WIP 2026-04-20 10:19:09 +02:00
Anne-Cath
f90d10114d Fix test 2026-04-20 10:19:09 +02:00
Anne-Cath
da0066dd14 fix php doc 2026-04-20 10:19:08 +02:00
Anne-Catherine
3f68e161be Update application/cmdbabstract.class.inc.php
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com>
2026-04-20 10:19:08 +02:00
Anne-Cath
cc8c3d3bf1 N°7577 - Issue with GetAttributeFlags when Attributes are set to HIDDEN 2026-04-20 10:19:05 +02:00

View File

@@ -175,6 +175,11 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay
*/
protected $sDisplayMode;
protected $aFieldsMap;
/**
* @var array Store posted values in order to be used in GetAttributeFlags
* @since 3.3.0
*/
protected $aPostedValues = [];
/**
* If true, bypass IsActionAllowedOnAttribute when writing this object
@@ -3794,7 +3799,7 @@ HTML;
return $aWriteableAttList;
}
/**
/**
* Compute the attribute flags depending on the object state
*/
public function GetFormAttributeFlags($sAttCode)
@@ -3986,6 +3991,7 @@ HTML;
$aErrors = [];
$aFinalValues = [];
$this->aPostedValues = $aValues; // Store the values for later use (e.g. in GetAttributeFlags)
foreach ($this->GetWriteableAttList(array_keys($aValues), $aErrors, $aAttFlags) as $sAttCode => $oAttDef) {
$aFinalValues[$sAttCode] = $aValues[$sAttCode];
}