diff --git a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php index ecfece8..9dfd4b8 100644 --- a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php +++ b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php @@ -463,6 +463,8 @@ public function submitOptionsForm(&$form, FormStateInterface $form_state) { // validation options. if (empty($option_values['specify_validation'])) { $option_values['validate']['type'] = 'none'; + // We need to keep the empty array of options for the 'None' plugin as + // it will be needed later. $option_values['validate']['options'] = ['none' => []]; $option_values['validate']['fail'] = 'not found'; } diff --git a/core/modules/views_ui/src/Tests/ArgumentValidatorTest.php b/core/modules/views_ui/src/Tests/ArgumentValidatorTest.php index 93da1e7..5b4b982 100644 --- a/core/modules/views_ui/src/Tests/ArgumentValidatorTest.php +++ b/core/modules/views_ui/src/Tests/ArgumentValidatorTest.php @@ -49,10 +49,8 @@ public function testSpecifyValidation() { * both with and without specify_validation turned on. * * @param boolean $specify_validation - * - * @throws \Exception */ - private function saveArgumentHandlerWithValidationOptions($specify_validation) { + protected function saveArgumentHandlerWithValidationOptions($specify_validation) { $options = array( 'options[validate][type]' => 'entity---node', 'options[specify_validation]' => $specify_validation,