- Casted type to string for selection matching
This commit is contained in:
parent
ff57fed699
commit
7437bbfc73
|
@ -51,11 +51,11 @@ class UiSelect extends UiElement implements Extension {
|
|||
$obj->text($key);
|
||||
|
||||
foreach($item as $subKey => $subItem) {
|
||||
$obj->append($this->createOption($subItem, $subKey, $isSelected));
|
||||
$obj->append($this->createOption((string) $subItem, $subKey, $isSelected));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$obj = $this->createOption($item, $key, $isSelected);
|
||||
$obj = $this->createOption((string) $item, $key, $isSelected);
|
||||
}
|
||||
|
||||
$this->append($obj);
|
||||
|
|
Loading…
Reference in New Issue