Skip to content

Commit

Permalink
add BooleanFilterColumns
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra Nantel committed Oct 15, 2018
1 parent 18c0c8c commit cdff3bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/class.entryquerytextboxadapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected function filterSingle(EntryQuery $query, $filter)
} elseif ($this->isFilterSQL($filter)) {
return $this->createFilterSQL($filter, $this->getFilterColumns());
} elseif ($this->isFilterBoolean($filter)) {
return $this->createFilterBoolean($filter, $this->getFilterColumns());
return $this->createFilterBoolean($filter, $this->getBooleanFilterColumns());
} elseif ($this->isFilterContains($filter)) {
return $this->createFilterContains($filter, $this->getFilterColumns());
} elseif ($this->isFilterHandle($filter)) {
Expand All @@ -124,6 +124,11 @@ public function getHandleFilterColumns()
return ['handle'];
}

public function getBooleanFilterColumns()
{
return ['value'];
}

public function getFilterColumns()
{
return ['value', 'handle'];
Expand Down

0 comments on commit cdff3bc

Please sign in to comment.