Plugged in the allowed values management into the modification form and the stimulus form (limitation: take care with the data model and fields that depend on each other, until we replace those forms with the wizard that is currently being used for the object creation)

SVN:trunk[174]
This commit is contained in:
Romain Quetiez
2009-09-17 08:56:07 +00:00
parent 640e59d280
commit 15a3301fa5
3 changed files with 7 additions and 5 deletions

View File

@@ -718,7 +718,8 @@ abstract class cmdbAbstractObject extends CMDBObject
{
$sValue = $this->Get($sAttCode);
$sDisplayValue = $this->GetDisplayValue($sAttCode);
$sHTMLValue = self::GetFormElementForField($oPage, get_class($this), $sAttCode, $oAttDef, $sValue, $sDisplayValue, '', '', $iFlags);
$aArgs = array('this' => $this);
$sHTMLValue = self::GetFormElementForField($oPage, get_class($this), $sAttCode, $oAttDef, $sValue, $sDisplayValue, '', '', $iFlags, $aArgs);
}
$aDetails[] = array('label' => $oAttDef->GetLabel(), 'value' => $sHTMLValue);
}