Skip to content

Commit

Permalink
fix handle conditions: in some cases however conditions do have value…
Browse files Browse the repository at this point in the history
…s, we do need the OPERATORS 'IS NULL' and 'IS NOT NULL' and since they are only available in the condition without values, some filters are not working anymore
  • Loading branch information
bakridemos committed Aug 19, 2024
1 parent a0d972e commit 4d80f67
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ public function parseCondition($condition): PathsBasedInterface

if (array_key_exists(DrupalFilterParser::VALUE, $condition )) {
if (!array_key_exists(DrupalFilterParser::OPERATOR, $condition )
|| (array_key_exists(DrupalFilterParser::OPERATOR, $condition )
&& ($condition[DrupalFilterParser::OPERATOR] !== 'IS NULL'
&& $condition[DrupalFilterParser::OPERATOR] !== 'IS NOT NULL'))) {
|| ($condition[DrupalFilterParser::OPERATOR] !== 'IS NULL'
&& $condition[DrupalFilterParser::OPERATOR] !== 'IS NOT NULL')) {
return $this->drupalConditionFactory->createConditionWithValue($operatorName, $condition[DrupalFilterParser::VALUE], $path);
}
}
Expand Down

0 comments on commit 4d80f67

Please sign in to comment.