Skip to content

Commit 5d1852f

Browse files
author
Pierre Goiffon
committed
Merge remote-tracking branch 'origin/support/3.0' into develop
2 parents ced4f82 + d7b94fb commit 5d1852f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

application/cmdbabstract.class.inc.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -3314,9 +3314,10 @@ public function DisplayStimulusForm(WebPage $oPage, $sStimulus, $aPrefillFormPar
33143314
}
33153315
}
33163316
}
3317+
$sInputType = '';
33173318
$sHTMLValue = cmdbAbstractObject::GetFormElementForField($oPage, $sClass, $sAttCode, $oAttDef,
33183319
$this->Get($sAttCode), $this->GetEditValue($sAttCode), 'att_'.$iFieldIndex, '', $iExpectCode,
3319-
$aArgs);
3320+
$aArgs, true, $sInputType);
33203321
$aAttrib = array(
33213322
'label' => '<span>'.$oAttDef->GetLabel().'</span>',
33223323
'value' => "<span id=\"field_att_$iFieldIndex\">$sHTMLValue</span>",
@@ -3333,13 +3334,13 @@ public function DisplayStimulusForm(WebPage $oPage, $sStimulus, $aPrefillFormPar
33333334
$aAttrib['atttype'] = $sAttDefClass;
33343335
$aAttrib['attlabel'] = $sAttLabel;
33353336
// - Attribute flags
3336-
$aAttrib['attflags'] = $this->GetFormAttributeFlags($sAttCode) ;
3337+
$aAttrib['attflags'] = $this->GetFormAttributeFlags($sAttCode);
33373338
// - How the field should be rendered
33383339
$aAttrib['layout'] = (in_array($oAttDef->GetEditClass(), static::GetAttEditClassesToRenderAsLargeField())) ? 'large' : 'small';
3340+
$aAttrib['inputtype'] = $sInputType;
33393341
// - For simple fields, we get the raw (stored) value as well
33403342
$bExcludeRawValue = false;
3341-
foreach (static::GetAttDefClassesToExcludeFromMarkupMetadataRawValue() as $sAttDefClassToExclude)
3342-
{
3343+
foreach (static::GetAttDefClassesToExcludeFromMarkupMetadataRawValue() as $sAttDefClassToExclude) {
33433344
if (is_a($sAttDefClass, $sAttDefClassToExclude, true)) {
33443345
$bExcludeRawValue = true;
33453346
break;

0 commit comments

Comments
 (0)