Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.0-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2008 at 10:13 UTC
Updated:
30 Sep 2008 at 18:42 UTC
I have two filters on node type. One that selecting only the nodetypes i want to view. And another exposed filter on nodetype.
If i don't select any value in the exposed filter everything works fine. And i only get my selected nodetypes in the list. But if i select a nodetype in the exposed filter. The exposed value isn't passed in the sql questions. It just get marked as ''.
Without exposed filter. Working
SELECT node.nid AS nid,
node.title AS node_title,
node.type AS node_type
FROM node node
WHERE (node.type in ('company', 'contact', 'medlemsforening')) AND (node.status <> 0)
ORDER BY node_title ASC
With exposed filter, not working just passing '' instead of exposed filter value
SELECT node.nid AS nid,
node.title AS node_title,
node.type AS node_type
FROM node node
WHERE (node.type in ('company', 'contact', 'medlemsforening')) AND (node.type in ('')) AND (node.status <> 0)
ORDER BY node_title ASC
Comments
Comment #1
merlinofchaos commentedIt's not clear to me what you're actually selecting in the exposed filter that achieves this result.
Also can you export the view and paste it between php tags, please? Then return this issue to 'active'.
Comment #2
freakalis commentedSure, here is the export.
The filter works if don't select any value in the exposed filter. But if i select any value in the exposed it doesn't return any value att all.
Comment #3
merlinofchaos commentedThanks for the view; I successfully reproduced this and fixed the error in CVS. It'll go out with the next dev rebuild which will be at midnight GMT and will be in rc3.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.