Skip to content

Commit 29533fb

Browse files
author
Dominic Tubach
committed
Fix radios input with booleans
1 parent 521da17 commit 29533fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Form/Control/Callbacks/OptionValueCallbacks.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ public static function value(array $element, $input, FormStateInterface $formSta
6464
return NULL;
6565
}
6666

67-
if (in_array($input, $element['#_option_values'], TRUE)
68-
|| self::isIntegerish($input) && in_array((int) $input, $element['#_option_values'], TRUE)
69-
) {
67+
if (array_key_exists($input, $element['#_option_values'])) {
7068
$input = $element['#_option_values'][$input];
7169
}
7270

0 commit comments

Comments
 (0)