CustomFields: suppressed a warning when editing an object with a custom field being read-only

SVN:trunk[3976]
This commit is contained in:
Romain Quetiez
2016-04-04 10:00:54 +00:00
parent a5d3208599
commit f01bd61692

View File

@@ -657,7 +657,12 @@ EOF
// Attribute is read-only
$sHTMLValue = "<span id=\"field_{$sInputId}\">".$this->GetAsHTML($sAttCode);
$sHTMLValue .= '<input type="hidden" id="'.$sInputId.'" name="attr_'.$sPrefix.$sAttCode.'" value="'.htmlentities($this->Get($sAttCode), ENT_QUOTES, 'UTF-8').'"/></span>';
$value = $this->Get($sAttCode);
if (is_object($value))
{
$value = '';
}
$sHTMLValue .= '<input type="hidden" id="'.$sInputId.'" name="attr_'.$sPrefix.$sAttCode.'" value="'.htmlentities($value, ENT_QUOTES, 'UTF-8').'"/></span>';
$aFieldsMap[$sAttCode] = $sInputId;
$sComments = $sSynchroIcon;
}