diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php
index 68423c6f4..d1872461e 100644
--- a/application/cmdbabstract.class.inc.php
+++ b/application/cmdbabstract.class.inc.php
@@ -1317,9 +1317,12 @@ EOF
else
{
$iFlags = $this->GetAttributeFlags($sAttCode);
+ $sInputId = $this->m_iFormId.'_'.$sAttCode;
if ($iFlags & OPT_ATT_HIDDEN)
{
- // Attribute is hidden, do nothing
+ // Attribute is hidden, add a hidden input
+ $oPage->add('');
+ $aFieldsMap[$sAttCode] = $sInputId;
}
else
{
@@ -1327,13 +1330,14 @@ EOF
{
// Attribute is read-only
$sHTMLValue = $this->GetAsHTML($sAttCode);
+ $sHTMLValue .= '';
+ $aFieldsMap[$sAttCode] = $sInputId;
}
else
{
$sValue = $this->Get($sAttCode);
$sDisplayValue = $this->GetEditValue($sAttCode);
$aArgs = array('this' => $this, 'formPrefix' => $sPrefix);
- $sInputId = $this->m_iFormId.'_'.$sAttCode;
$sHTMLValue = "".self::GetFormElementForField($oPage, $sClass, $sAttCode, $oAttDef, $sValue, $sDisplayValue, $sInputId, '', $iFlags, $aArgs).'';
$aFieldsMap[$sAttCode] = $sInputId;