Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b5411b1f
Commit
b5411b1f
authored
May 29, 2013
by
Alex Pott
Browse files
Issue
#2003582
by malcomio, zschmid: Rename Views method op_equal() to opEqual().
parent
7b3a7b2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php
View file @
b5411b1f
...
...
@@ -87,10 +87,10 @@ public function query() {
}
}
// By default things like op
_e
qual uses add_where, that doesn't support
// By default things like op
E
qual uses add_where, that doesn't support
// complex expressions, so override all operators.
function
op
_e
qual
(
$expression
)
{
function
op
E
qual
(
$expression
)
{
$placeholder
=
$this
->
placeholder
();
$operator
=
$this
->
operator
();
$this
->
query
->
add_where_expression
(
$this
->
options
[
'group'
],
"
$expression
$operator
$placeholder
"
,
array
(
$placeholder
=>
$this
->
value
));
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
View file @
b5411b1f
...
...
@@ -41,13 +41,13 @@ function operators() {
'='
=>
array
(
'title'
=>
t
(
'Is equal to'
),
'short'
=>
t
(
'='
),
'method'
=>
'op
_e
qual'
,
'method'
=>
'op
E
qual'
,
'values'
=>
1
,
),
'!='
=>
array
(
'title'
=>
t
(
'Is not equal to'
),
'short'
=>
t
(
'!='
),
'method'
=>
'op
_e
qual'
,
'method'
=>
'op
E
qual'
,
'values'
=>
1
,
),
'contains'
=>
array
(
...
...
@@ -260,7 +260,7 @@ public function query() {
}
}
function
op
_e
qual
(
$field
)
{
public
function
op
E
qual
(
$field
)
{
$this
->
query
->
add_where
(
$this
->
options
[
'group'
],
$field
,
$this
->
value
,
$this
->
operator
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment