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
221
Merge Requests
221
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
8ef98edc
Commit
8ef98edc
authored
Jul 31, 2020
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3161199
by lauriii, bnjmnm: Remove $no_operator = TRUE from Views BooleanOperator
(cherry picked from commit
761dbfb3
)
parent
baab371f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
core/modules/views/src/Plugin/views/filter/BooleanOperator.php
...modules/views/src/Plugin/views/filter/BooleanOperator.php
+0
-2
core/modules/views_ui/tests/src/Functional/FilterBooleanWebTest.php
...es/views_ui/tests/src/Functional/FilterBooleanWebTest.php
+5
-0
No files found.
core/modules/views/src/Plugin/views/filter/BooleanOperator.php
View file @
8ef98edc
...
...
@@ -43,8 +43,6 @@ class BooleanOperator extends FilterPluginBase {
// exposed filter options
protected
$alwaysMultiple
=
TRUE
;
// Don't display empty space where the operator would be.
public
$no_operator
=
TRUE
;
// Whether to accept NULL as a false value or not
public
$accept_null
=
FALSE
;
...
...
core/modules/views_ui/tests/src/Functional/FilterBooleanWebTest.php
View file @
8ef98edc
...
...
@@ -32,6 +32,11 @@ public function testFilterBooleanUI() {
$result
=
$this
->
cssSelect
(
'#edit-options-value--wrapper legend span'
);
$this
->
assertEqual
(
$result
[
0
]
->
getHtml
(),
'Status'
);
// Ensure that the operator and the filter value are displayed using correct
// layout.
$this
->
assertSession
()
->
elementExists
(
'css'
,
'.views-left-30 .form-item-options-operator'
);
$this
->
assertSession
()
->
elementExists
(
'css'
,
'.views-right-70 .form-item-options-value'
);
$this
->
drupalPostForm
(
NULL
,
[],
t
(
'Expose filter'
));
$this
->
drupalPostForm
(
NULL
,
[],
t
(
'Grouped filters'
));
...
...
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