Commit a7f6b939 authored by alexpott's avatar alexpott
Browse files

Issue #2003548 by nathangervais, GekkoKammen, heddn: Rename Views method op_not() to opNotLike().

parent 31b5fb78
......@@ -121,7 +121,7 @@ protected function opNotEnds($expression) {
$this->query->add_where_expression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => '%' . db_like($this->value)));
}
function op_not($expression) {
protected function opNotLike($expression) {
$placeholder = $this->placeholder();
$this->query->add_where_expression($this->options['group'], "$expression NOT LIKE $placeholder", array($placeholder => '%' . db_like($this->value) . '%'));
}
......
......@@ -95,7 +95,7 @@ function operators() {
'not' => array(
'title' => t('Does not contain'),
'short' => t('!has'),
'method' => 'op_not',
'method' => 'opNotLike',
'values' => 1,
),
'shorterthan' => array(
......@@ -317,7 +317,7 @@ protected function opNotEnds($field) {
$this->query->addWhere($this->options['group'], $field, '%' . db_like($this->value), 'NOT LIKE');
}
function op_not($field) {
protected function opNotLike($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