瀏覽代碼

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2163 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 年之前
父節點
當前提交
277d308a07
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/cmdbabstract.class.inc.php

+ 1 - 1
application/cmdbabstract.class.inc.php

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