diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index c75e8017f..a32de59e4 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -3409,9 +3409,10 @@ EOF } } } + $sInputType = ''; $sHTMLValue = cmdbAbstractObject::GetFormElementForField($oPage, $sClass, $sAttCode, $oAttDef, $this->Get($sAttCode), $this->GetEditValue($sAttCode), 'att_'.$iFieldIndex, '', $iExpectCode, - $aArgs); + $aArgs, true, $sInputType); $aAttrib = array( 'label' => ''.$oAttDef->GetLabel().'', 'value' => "$sHTMLValue", @@ -3428,13 +3429,13 @@ EOF $aAttrib['atttype'] = $sAttDefClass; $aAttrib['attlabel'] = $sAttLabel; // - Attribute flags - $aAttrib['attflags'] = $this->GetFormAttributeFlags($sAttCode) ; + $aAttrib['attflags'] = $this->GetFormAttributeFlags($sAttCode); // - How the field should be rendered $aAttrib['layout'] = (in_array($oAttDef->GetEditClass(), static::GetAttEditClassesToRenderAsLargeField())) ? 'large' : 'small'; + $aAttrib['inputtype'] = $sInputType; // - For simple fields, we get the raw (stored) value as well $bExcludeRawValue = false; - foreach (static::GetAttDefClassesToExcludeFromMarkupMetadataRawValue() as $sAttDefClassToExclude) - { + foreach (static::GetAttDefClassesToExcludeFromMarkupMetadataRawValue() as $sAttDefClassToExclude) { if (is_a($sAttDefClass, $sAttDefClassToExclude, true)) { $bExcludeRawValue = true; break;