N°3750 Fix data-input-type refreshed to "" for autocomplete

The $sInputType var init was commited in 6a5c4788 but removed by accident in b2050a88
This commit is contained in:
Pierre Goiffon
2021-03-04 15:44:28 +01:00
parent 5ccd229092
commit 5748ea3a74

View File

@@ -275,6 +275,7 @@ EOF
$iMinChars = isset($aArgs['iMinChars']) ? $aArgs['iMinChars'] : 2; //@@@ $this->oAttDef->GetMinAutoCompleteChars();
// the input for the auto-complete
$sInputType = CmdbAbstractObject::ENUM_INPUT_TYPE_AUTOCOMPLETE;
$sHTMLValue .= "<input class=\"field_autocomplete ibo-input ibo-input-select ibo-input-select-autocomplete\" type=\"text\" id=\"label_$this->iId\" value=\"$sDisplayValue\"/>";
// another hidden input to store & pass the object's Id