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 bdf71f4..19448c4 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) { + public function opStartsWith($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 c71e14b..51a8db7 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' => 'opStartsWith', '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) { + public function opStarts($field) { $this->query->add_where($this->options['group'], $field, db_like($this->value) . '%', 'LIKE'); }