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
299
Merge Requests
299
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
761dbfb3
Commit
761dbfb3
authored
Jul 31, 2020
by
catch
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3161199
by lauriii, bnjmnm: Remove $no_operator = TRUE from Views BooleanOperator
parent
703dbe13
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 @
761dbfb3
...
...
@@ -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 @
761dbfb3
...
...
@@ -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'
));
...
...
catch
@catch
mentioned in commit
3e9838b5
·
Jul 31, 2020
mentioned in commit
3e9838b5
mentioned in commit 3e9838b532b7f7fdd9b80510372509e1acaa7e33
Toggle commit list
catch
@catch
mentioned in commit
8ef98edc
·
Jul 31, 2020
mentioned in commit
8ef98edc
mentioned in commit 8ef98edce6638512101e50d9d30f688bc7ef4cdd
Toggle commit list
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