Bug fix: do NOT request the display value of a linkset when this value is useless and may generate an exception !!

SVN:trunk[2163]
This commit is contained in:
Denis Flaven
2012-08-31 13:31:27 +00:00
parent 4eb018ac50
commit d799585958

View File

@@ -312,7 +312,7 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay
$oPage->p(MetaModel::GetClassIcon($sTargetClass)."&nbsp;".$oAttDef->GetDescription().'<span id="busy_'.$sInputId.'"></span>');
$sValue = $this->Get($sAttCode);
$sDisplayValue = $this->GetEditValue($sAttCode);
$sDisplayValue = ''; // not used
$aArgs = array('this' => $this);
$sHTMLValue = "<span id=\"field_{$sInputId}\">".self::GetFormElementForField($oPage, $sClass, $sAttCode, $oAttDef, $sValue, $sDisplayValue, $sInputId, '', $iFlags, $aArgs).'</span>';
$aFieldsMap[$sAttCode] = $sInputId;