Commit 3e9838b5 authored by catch's avatar catch
Browse files

Issue #3161199 by lauriii, bnjmnm: Remove $no_operator = TRUE from Views BooleanOperator

(cherry picked from commit 761dbfb3)
parent fd5fbe16
......@@ -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;
......@@ -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'));
Supports Markdown
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