Commit b5411b1f authored by alexpott's avatar alexpott

Issue #2003582 by malcomio, zschmid: Rename Views method op_equal() to opEqual().

parent 7b3a7b2f
...@@ -87,10 +87,10 @@ public function query() { ...@@ -87,10 +87,10 @@ public function query() {
} }
} }
// By default things like op_equal uses add_where, that doesn't support // By default things like opEqual uses add_where, that doesn't support
// complex expressions, so override all operators. // complex expressions, so override all operators.
function op_equal($expression) { function opEqual($expression) {
$placeholder = $this->placeholder(); $placeholder = $this->placeholder();
$operator = $this->operator(); $operator = $this->operator();
$this->query->add_where_expression($this->options['group'], "$expression $operator $placeholder", array($placeholder => $this->value)); $this->query->add_where_expression($this->options['group'], "$expression $operator $placeholder", array($placeholder => $this->value));
......
...@@ -41,13 +41,13 @@ function operators() { ...@@ -41,13 +41,13 @@ function operators() {
'=' => array( '=' => array(
'title' => t('Is equal to'), 'title' => t('Is equal to'),
'short' => t('='), 'short' => t('='),
'method' => 'op_equal', 'method' => 'opEqual',
'values' => 1, 'values' => 1,
), ),
'!=' => array( '!=' => array(
'title' => t('Is not equal to'), 'title' => t('Is not equal to'),
'short' => t('!='), 'short' => t('!='),
'method' => 'op_equal', 'method' => 'opEqual',
'values' => 1, 'values' => 1,
), ),
'contains' => array( 'contains' => array(
...@@ -260,7 +260,7 @@ public function query() { ...@@ -260,7 +260,7 @@ public function query() {
} }
} }
function op_equal($field) { public function opEqual($field) {
$this->query->add_where($this->options['group'], $field, $this->value, $this->operator()); $this->query->add_where($this->options['group'], $field, $this->value, $this->operator());
} }
......
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