Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Views PHP doesn't work in an or group.
Given the following filter setup:
Filtercriteria
Inhoud: Author-uid (= 1)
AND
Inhoud: Author-uid (<> 1) OR
Placebo (Always pass) (PHP)
With the following PHP filter:
return FALSE;
A default view will generate:
SELECT node.created AS node_created, node.nid AS nid
FROM
{node} node
WHERE (( (node.uid IN ('1')) )AND( (node.uid NOT IN ('1')) ))
ORDER BY node_created DESC
LIMIT 10 OFFSET 0
Even though PHP will always pass (And therefore the second group should always pass) the view will always return no results.
Is this wontfix because it would require implementing post-query code for all the other filters? If so, as far as I can tell it's not documented anywhere.