Commit e505a00a authored by Carsten  Rose's avatar Carsten Rose
Browse files

Respect user setting for 'autocomplete' - if none given (mostly), set it for...

Respect user setting for 'autocomplete' - if none given (mostly), set it for FE 'typeahead' to 'off'
parent 6557a29d
......@@ -1058,7 +1058,9 @@ abstract class AbstractBuildForm {
if ($typeAheadUrlParam != '') {
$formElement[FE_TYPE] = FE_TYPE_SEARCH; // typeahead behaves better with 'search' instead of 'text'
$formElement[FE_INPUT_AUTOCOMPLETE] = 'off';
if (empty($formElement[FE_INPUT_AUTOCOMPLETE])) {
$formElement[FE_INPUT_AUTOCOMPLETE] = 'off'; // typeahead behaves better with 'autocomplete'='off'
}
$class .= ' ' . CLASS_TYPEAHEAD;
$dataSip = $this->sip->queryStringToSip($typeAheadUrlParam, RETURN_SIP);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment