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..049851b 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 @@ -101,7 +101,7 @@ function op_contains($expression) { $this->query->add_where_expression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => '%' . db_like($this->value) . '%')); } - function op_starts($expression) { + function addStartsWith($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..6d183eb 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 @@ -71,7 +71,7 @@ function operators() { 'starts' => array( 'title' => t('Starts with'), 'short' => t('begins'), - 'method' => 'op_starts', + 'method' => 'addStartsWith', 'values' => 1, ), 'not_starts' => array( @@ -301,7 +301,7 @@ function op_word($field) { $this->query->add_where($this->options['group'], $where); } - function op_starts($field) { + function addStartsWith($field) { $this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'LIKE'); }