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..9e7f1a6 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 @@ -107,7 +107,7 @@ function operators() { 'longerthan' => array( 'title' => t('Length is longer than'), 'short' => t('longer than'), - 'method' => 'op_longer', + 'method' => 'addLongerThan', 'values' => 1, ), ); @@ -326,7 +326,7 @@ function op_shorter($field) { $this->query->add_where_expression($this->options['group'], "LENGTH($field) < $placeholder", array($placeholder => $this->value)); } - function op_longer($field) { + function addLongerThan($field) { $placeholder = $this->placeholder(); $this->query->add_where_expression($this->options['group'], "LENGTH($field) > $placeholder", array($placeholder => $this->value)); }