CCK field is empty/not empty filter doesn't work when exposed
Flying Drupalist - May 31, 2009 - 16:04
| Project: | Views |
| Version: | 6.x-2.6 |
| Component: | exposed filters |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
I use a filter for cck field to check if it has content, and if it has content to display it. So I choose the filter operator Is not empty (null). This works fine normally, but becomes ineffectual if I expose the filter.
I'm uncertain if this is a bug or not.

#1
But the Views Integration of CCK ist not part of Views
#2
I have also noticed this problem.
When the field is not exposed as a filter and the field operator
is set to IS EMPTY/ IS NOT EMPTY it works perfectly fine
but when we expose the same filter and search based on
IS EMPTY/ IS NOT EMPTY operator there is no change in results.
I am using Drupal 6.12
cck - 6.x-2.3
views - 6.x-2.6
Any help is appreciated.
Thanks
Juned Kazi
#3
+1
#4
Just changing it to critical to bring it to notice.
#5
can anyone of the maintainers pls look into this issue.
If u need anymore info pls let me know I will try and
provide as much info as I can to get this problem
solved.
#6
#7
subscribed
#8
I've been unable to reproduce this issue. Please, try with latest development version of CCK to see if that makes a difference.
If the problem persists, then please provide steps to reproduce. First try with a simple view using text or number fields provided by CCK itself. If that works, then try with noderef. If that works, then try with any other field.
If the problem is related to a field that is not provided by CCK itself, then this issue needs to be transferred to the proper queue.
Please, describe how the field you wanted to filter by is defined, the field type, if it accepts multiple values, the SQL statement generated when using the EMPTY/NOT EMPTY operator -vs- any other operator, etc.
#9
Actually, I think this was really fixed in Views itself. See #323049: Add 'allow empty' support to views_handler_filter_in_operator
#10
Automatically closed -- issue fixed for 2 weeks with no activity.
#11
This is not fixed. I can reproduce, and I have the latest 6.x releases of core, CCK, and Views, and Views 6.x-2.6's release notes show that #323049: Add 'allow empty' support to views_handler_filter_in_operator was included.
I tested the Is empty (NULL)and Is not empty (NULL) filters on a Text field type. When, non-exposed, the filters work as expected. When exposed, they stop working.
Note that all I did was expose the filter. I did not select any other options. This just shows the filter description and an Apply button on the view.
#12
This feature in CCK is inherited from Views handlers, so the correct layer where needs to be fixed is Views (see views_handler_filter_string, views_handler_filter_numeric, views_handler_filter_in_operator, ...). Transferring to he proper issues queue.
#13
I just realized this duplicates #573298: Cannot set exposed binary filters without "Unlock operator". The problem is that the Views UI does not show an operator to turn on/off empty/not empty filters.