Active
Project:
Views PHP
Version:
7.x-1.0-alpha1
Component:
Documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2014 at 11:59 UTC
Updated:
21 Aug 2014 at 11:59 UTC
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 0Even 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.