- Casted type to string for selection matching
This commit is contained in:
1 parent
ff57fed699
commit
7437bbfc73
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user