diff --git a/core/modules/views/src/Plugin/views/filter/InOperator.php b/core/modules/views/src/Plugin/views/filter/InOperator.php index 61e3152..1e6682d 100644 --- a/core/modules/views/src/Plugin/views/filter/InOperator.php +++ b/core/modules/views/src/Plugin/views/filter/InOperator.php @@ -231,7 +231,7 @@ protected function valueForm(&$form, FormStateInterface $form_state) { '#multiple' => TRUE, // The value options can be a multidimensional array if the value form // type is a select list, so make sure that they are counted correctly. - '#size' => count($options, COUNT_RECURSIVE) > 8 ? 8 : count($options, COUNT_RECURSIVE), + '#size' => min(count($options, COUNT_RECURSIVE), 8), ]; $user_input = $form_state->getUserInput(); if ($exposed && !isset($user_input[$identifier])) {