diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php index a8d8de8..53e9c62 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php @@ -111,7 +111,7 @@ function op_not_starts($expression) { $this->query->add_where_expression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => db_like($this->value) . '%')); } - function op_ends($expression) { + public function addEndsWith($expression) { $placeholder = $this->placeholder(); $this->query->add_where_expression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => '%' . db_like($this->value))); } diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php index c80e39d..77d81af 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php @@ -83,7 +83,7 @@ function operators() { 'ends' => array( 'title' => t('Ends with'), 'short' => t('ends'), - 'method' => 'op_ends', + 'method' => 'addEndsWith', 'values' => 1, ), 'not_ends' => array( @@ -309,7 +309,7 @@ function op_not_starts($field) { $this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'NOT LIKE'); } - function op_ends($field) { + public function addEndsWith($field) { $this->query->add_where($this->options['group'], $field, '%' . db_like($this->value), 'LIKE'); }