Commit d3fe0d43 authored by webchick's avatar webchick

Issue #2020377 by LinL | xjm: Rename Views method opNotEnds() to opNotEndsWith().

parent b5279723
......@@ -116,7 +116,7 @@ protected function opEndsWith($expression) {
$this->query->addWhereExpression($this->options['group'], "$expression LIKE $placeholder", array($placeholder => '%' . db_like($this->value)));
}
protected function opNotEnds($expression) {
protected function opNotEndsWith($expression) {
$placeholder = $this->placeholder();
$this->query->addWhereExpression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => '%' . db_like($this->value)));
}
......
......@@ -89,7 +89,7 @@ function operators() {
'not_ends' => array(
'title' => t('Does not end with'),
'short' => t('not_ends'),
'method' => 'opNotEnds',
'method' => 'opNotEndsWith',
'values' => 1,
),
'not' => array(
......@@ -313,7 +313,7 @@ protected function opEndsWith($field) {
$this->query->addWhere($this->options['group'], $field, '%' . db_like($this->value), 'LIKE');
}
protected function opNotEnds($field) {
protected function opNotEndsWith($field) {
$this->query->addWhere($this->options['group'], $field, '%' . db_like($this->value), 'NOT LIKE');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment