Przeglądaj źródła

Allow updating/recomputing of read-only attributes on the fly in the edit form.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1458 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 lat temu
rodzic
commit
5e934a95de
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      pages/ajax.render.php

+ 1 - 1
pages/ajax.render.php

@@ -339,7 +339,7 @@ try
 				if ($iFlags & OPT_ATT_READONLY)
 				{
 					$sHTMLValue = "<span id=\"field_{$sId}\">".$oObj->GetAsHTML($sAttCode);
-					$sHTMLValue .= '<input type="hidden" id="'.$sId.'" name="attr_'.$sFormPrefix.$sAttCode.'" value="'.htmlentities($this->Get($sAttCode), ENT_QUOTES, 'UTF-8').'"/></span>';
+					$sHTMLValue .= '<input type="hidden" id="'.$sId.'" name="attr_'.$sFormPrefix.$sAttCode.'" value="'.htmlentities($oObj->Get($sAttCode), ENT_QUOTES, 'UTF-8').'"/></span>';
 					$oWizardHelper->SetAllowedValuesHtml($sAttCode, $sHTMLValue);
 				}
 				else