Skip to content
Snippets Groups Projects
Commit 8ef98edc 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 baab371f
Branches
Tags
Loading
......@@ -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'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment