diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/InputRequired.php b/core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/InputRequired.php index 7d11223..9cb023a 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/InputRequired.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/exposed_form/InputRequired.php @@ -82,7 +82,6 @@ function pre_render($values) { 'group_type' => 'group', 'content' => $this->options['text_input_required'], 'format' => $this->options['text_input_required_format'], - 'optional' => FALSE, ); $handler = views_get_handler($options, 'area'); $handler->init($this->view, $options); diff --git a/core/modules/views/lib/Drupal/views/Tests/Handler/HandlerAllTest.php b/core/modules/views/lib/Drupal/views/Tests/Handler/HandlerAllTest.php index 4e77b35..78e768c 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Handler/HandlerAllTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Handler/HandlerAllTest.php @@ -72,11 +72,15 @@ public function testHandlers() { foreach ($info as $field => $field_info) { // Table is a reserved key for the metainformation. if ($field != 'table' && !in_array("$base_table:$field", $exclude)) { + $item = array( + 'table' => $base_table, + 'field' => $field, + ); foreach ($object_types as $type) { if (isset($field_info[$type]['id'])) { $options = array(); if ($type == 'filter') { - $handler = views_get_handler($base_table, $field, $type); + $handler = views_get_handler($item, $type); if ($handler instanceof InOperator) { $options['value'] = array(1); } diff --git a/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php b/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php index e8e1957..3d1411b 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/ModuleTest.php @@ -39,7 +39,7 @@ function testviews_get_handler() { 'table' => $this->randomName(), 'field' => $this->randomName(), ); - $handler = views_get_handler($this->randomName(), $this->randomName(), $type); + $handler = views_get_handler($item, $type); $this->assertEqual('Drupal\views\Plugin\views\\' . $type . '\Broken', get_class($handler), t('Make sure that a broken handler of type: @type are created', array('@type' => $type))); } diff --git a/core/modules/views/views.module b/core/modules/views/views.module index b61c0bf..c0383b1 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -886,6 +886,7 @@ function views_library_info() { * - field: The name of the field the handler represents. * - optional: (optional) Whether or not this handler is optional. If a * handler is missing and not optional, a debug message will be displayed. + * Defaults to FALSE. * @param string $type * The type of handler. i.e, sort, field, argument, filter, relationship * @param string|null $override