diff --git a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php index 9e69cfdae..7e7aee5fb 100644 --- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php @@ -960,6 +960,7 @@ public function buildExposedForm(&$form, FormStateInterface $form_state) { unset($form['value']); } + $form[$value] = !empty($form[$value]) ? $form[$value] : []; // When the operator and value forms are both in play, enclose them within // a wrapper, for usability. Also wrap if the value form is comprised of // multiple elements.