@@ -3314,9 +3314,10 @@ public function DisplayStimulusForm(WebPage $oPage, $sStimulus, $aPrefillFormPar
3314
3314
}
3315
3315
}
3316
3316
}
3317
+ $ sInputType = '' ;
3317
3318
$ sHTMLValue = cmdbAbstractObject::GetFormElementForField ($ oPage , $ sClass , $ sAttCode , $ oAttDef ,
3318
3319
$ this ->Get ($ sAttCode ), $ this ->GetEditValue ($ sAttCode ), 'att_ ' .$ iFieldIndex , '' , $ iExpectCode ,
3319
- $ aArgs );
3320
+ $ aArgs, true , $ sInputType );
3320
3321
$ aAttrib = array (
3321
3322
'label ' => '<span> ' .$ oAttDef ->GetLabel ().'</span> ' ,
3322
3323
'value ' => "<span id= \"field_att_ $ iFieldIndex \"> $ sHTMLValue</span> " ,
@@ -3333,13 +3334,13 @@ public function DisplayStimulusForm(WebPage $oPage, $sStimulus, $aPrefillFormPar
3333
3334
$ aAttrib ['atttype ' ] = $ sAttDefClass ;
3334
3335
$ aAttrib ['attlabel ' ] = $ sAttLabel ;
3335
3336
// - Attribute flags
3336
- $ aAttrib ['attflags ' ] = $ this ->GetFormAttributeFlags ($ sAttCode ) ;
3337
+ $ aAttrib ['attflags ' ] = $ this ->GetFormAttributeFlags ($ sAttCode );
3337
3338
// - How the field should be rendered
3338
3339
$ aAttrib ['layout ' ] = (in_array ($ oAttDef ->GetEditClass (), static ::GetAttEditClassesToRenderAsLargeField ())) ? 'large ' : 'small ' ;
3340
+ $ aAttrib ['inputtype ' ] = $ sInputType ;
3339
3341
// - For simple fields, we get the raw (stored) value as well
3340
3342
$ bExcludeRawValue = false ;
3341
- foreach (static ::GetAttDefClassesToExcludeFromMarkupMetadataRawValue () as $ sAttDefClassToExclude )
3342
- {
3343
+ foreach (static ::GetAttDefClassesToExcludeFromMarkupMetadataRawValue () as $ sAttDefClassToExclude ) {
3343
3344
if (is_a ($ sAttDefClass , $ sAttDefClassToExclude , true )) {
3344
3345
$ bExcludeRawValue = true ;
3345
3346
break ;
0 commit comments