Fix bad position of selected option
This commit is contained in:
parent
8ac368ce17
commit
07079fc239
1 changed files with 1 additions and 1 deletions
|
|
@ -8707,7 +8707,7 @@ class Form
|
|||
}
|
||||
} else {
|
||||
$id = (string) $id; // if $id = 0, then $id = '0'
|
||||
if ($id != '' && ($id == $key || ($id == 'ifone' && count($array) == 1)) && !$disabled) {
|
||||
if ($id != '' && (($id == (string) $key) || ($id == 'ifone' && count($array) == 1)) && !$disabled) {
|
||||
$out .= ' selected'; // To preselect a value
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue