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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;

+5 −0
Original line number Diff line number Diff line
@@ -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'));