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..734abf2 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 @@ -101,7 +101,7 @@ function operators() { 'shorterthan' => array( 'title' => t('Length is shorter than'), 'short' => t('shorter than'), - 'method' => 'op_shorter', + 'method' => 'addShorterThan', 'values' => 1, ), 'longerthan' => array( @@ -321,7 +321,7 @@ function op_not($field) { $this->query->add_where($this->options['group'], $field, '%' . db_like($this->value) . '%', 'NOT LIKE'); } - function op_shorter($field) { + public function addShorterThan($field) { $placeholder = $this->placeholder(); $this->query->add_where_expression($this->options['group'], "LENGTH($field) < $placeholder", array($placeholder => $this->value)); }