|
@@ -147,6 +147,10 @@ class Selector
|
|
|
|
|
|
foreach ($selected as &$value) {
|
|
|
$value = explode(',', $value);
|
|
|
+
|
|
|
+ foreach ($value as &$v) {
|
|
|
+ $v = (string) $v;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return $this->selected = $selected;
|
|
@@ -182,8 +186,8 @@ class Selector
|
|
|
return $this->request->fullUrlWithQuery($query);
|
|
|
}
|
|
|
|
|
|
- if (in_array($value, $options)) {
|
|
|
- Helper::deleteByValue($options, $value);
|
|
|
+ if (in_array((string) $value, $options, true)) {
|
|
|
+ Helper::deleteByValue($options, (string) $value, true);
|
|
|
} else {
|
|
|
if ($add) {
|
|
|
$options = [];
|