Skip to content

Commit

Permalink
Direct Parser *bad drupal* dislikes empties
Browse files Browse the repository at this point in the history
So we discard empties... but we keep the untrimmed if the trim is not emtpy...
  • Loading branch information
DiegoPino committed Feb 14, 2023
1 parent 5d7977f commit 76bdb7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function query() {

foreach ($this->value as $exposed_value_id => $exposed_value) {
// Catch empty strings entered by the user, but not "0".
if ($exposed_value === '') {
if (trim($exposed_value) === '') {
unset($this->value[$exposed_value_id]);
unset($this->searchedFields[$exposed_value_id]);
}
Expand Down

0 comments on commit 76bdb7f

Please sign in to comment.