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
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

dereine - May 31, 2009 - 18:46
Project:Views» Content Construction Kit (CCK)
Version:6.x-2.5» 6.x-2.x-dev
Component:Code» Views Integration

But the Views Integration of CCK ist not part of Views

#2

junedkazi - June 16, 2009 - 01:43
Title:CCK field is not empty filter doesn't work when exposed» CCK field is empty/not empty filter doesn't work when exposed

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

j0k3z - July 7, 2009 - 03:09

+1

#4

junedkazi - July 7, 2009 - 07:26
Priority:normal» critical

Just changing it to critical to bring it to notice.

#5

junedkazi - July 22, 2009 - 15:10

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

Flying Drupalist - July 22, 2009 - 17:43
Priority:critical» normal

#7

mkimicfi - August 31, 2009 - 20:21

subscribed

#8

markus_petrux - September 1, 2009 - 05:12
Status:active» postponed (maintainer needs more info)

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

markus_petrux - September 11, 2009 - 08:47
Status:postponed (maintainer needs more info)» fixed

Actually, I think this was really fixed in Views itself. See #323049: Add 'allow empty' support to views_handler_filter_in_operator

#10

System Message - September 25, 2009 - 08:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#11

Aren Cambre - October 10, 2009 - 17:41
Status:closed» active

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

markus_petrux - October 10, 2009 - 17:41
Project:Content Construction Kit (CCK)» Views
Version:6.x-2.x-dev» 6.x-2.6
Component:Views Integration» exposed filters

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

Aren Cambre - October 10, 2009 - 18:21
Status:active» duplicate

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.

 
 

Drupal is a registered trademark of Dries Buytaert.