Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
306
Merge Requests
306
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
d3fe0d43
Commit
d3fe0d43
authored
Jun 17, 2013
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2020377
by LinL | xjm: Rename Views method opNotEnds() to opNotEndsWith().
parent
b5279723
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php
...es/views/lib/Drupal/views/Plugin/views/filter/Combine.php
+1
-1
core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
...les/views/lib/Drupal/views/Plugin/views/filter/String.php
+2
-2
No files found.
core/modules/views/lib/Drupal/views/Plugin/views/filter/Combine.php
View file @
d3fe0d43
...
...
@@ -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
opNotEnds
With
(
$expression
)
{
$placeholder
=
$this
->
placeholder
();
$this
->
query
->
addWhereExpression
(
$this
->
options
[
'group'
],
"
$expression
NOT LIKE
$placeholder
"
,
array
(
$placeholder
=>
'%'
.
db_like
(
$this
->
value
)));
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/filter/String.php
View file @
d3fe0d43
...
...
@@ -89,7 +89,7 @@ function operators() {
'not_ends'
=>
array
(
'title'
=>
t
(
'Does not end with'
),
'short'
=>
t
(
'not_ends'
),
'method'
=>
'opNotEnds'
,
'method'
=>
'opNotEnds
With
'
,
'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
opNotEnds
With
(
$field
)
{
$this
->
query
->
addWhere
(
$this
->
options
[
'group'
],
$field
,
'%'
.
db_like
(
$this
->
value
),
'NOT LIKE'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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