Loading core/modules/views/src/Form/ViewsExposedForm.php +0 −1 Original line number Diff line number Diff line Loading @@ -196,7 +196,6 @@ public function submitForm(array &$form, FormStateInterface $form_state) { $view->exposed_data = $values; $view->exposed_raw_input = []; $exclude = ['submit', 'form_build_id', 'form_id', 'form_token', 'exposed_form_plugin', 'reset']; /** @var \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginBase $exposed_form_plugin */ $exposed_form_plugin = $view->display_handler->getPlugin('exposed_form'); $exposed_form_plugin->exposedFormSubmit($form, $form_state, $exclude); Loading core/modules/views/tests/src/Kernel/Plugin/ExposedFormRenderTest.php +3 −2 Original line number Diff line number Diff line Loading @@ -137,12 +137,13 @@ public function testExposedFormRawInput(): void { $view->save(); $this->executeView($view); // The "type" filter should be excluded from the raw input because its // value is "All". $expected = [ 'type' => 'All', 'type_with_default_value' => 'article', 'multiple_types_with_default_value' => ['article' => 'article'], ]; $this->assertSame($view->exposed_raw_input, $expected); $this->assertSame($expected, $view->exposed_raw_input); } } Loading
core/modules/views/src/Form/ViewsExposedForm.php +0 −1 Original line number Diff line number Diff line Loading @@ -196,7 +196,6 @@ public function submitForm(array &$form, FormStateInterface $form_state) { $view->exposed_data = $values; $view->exposed_raw_input = []; $exclude = ['submit', 'form_build_id', 'form_id', 'form_token', 'exposed_form_plugin', 'reset']; /** @var \Drupal\views\Plugin\views\exposed_form\ExposedFormPluginBase $exposed_form_plugin */ $exposed_form_plugin = $view->display_handler->getPlugin('exposed_form'); $exposed_form_plugin->exposedFormSubmit($form, $form_state, $exclude); Loading
core/modules/views/tests/src/Kernel/Plugin/ExposedFormRenderTest.php +3 −2 Original line number Diff line number Diff line Loading @@ -137,12 +137,13 @@ public function testExposedFormRawInput(): void { $view->save(); $this->executeView($view); // The "type" filter should be excluded from the raw input because its // value is "All". $expected = [ 'type' => 'All', 'type_with_default_value' => 'article', 'multiple_types_with_default_value' => ['article' => 'article'], ]; $this->assertSame($view->exposed_raw_input, $expected); $this->assertSame($expected, $view->exposed_raw_input); } }