From 8842ae4eaa94a1232560b6498c630037cc38ff54 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Tue, 6 Oct 2020 11:04:13 -0400 Subject: [PATCH] - Fixed a bug where "002" value was set as "2", therefore failling to match selected items; a proper value selection must be implemented. --- src/Form/UiSelect.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Form/UiSelect.php b/src/Form/UiSelect.php index 2ad269b..5246c74 100644 --- a/src/Form/UiSelect.php +++ b/src/Form/UiSelect.php @@ -75,14 +75,6 @@ class UiSelect extends UiElement implements Extension { protected function isSelected($check, $value, bool $strict = true) : bool { - - if (false !== ( $f = filter_var($value, FILTER_VALIDATE_INT) ) ) { - $value = $f; - } - elseif (false !== ( $f = filter_var($value, FILTER_VALIDATE_FLOAT) ) ) { - $value = $f; - } - return $strict ? $check === $value : $check == $value; } }