I have a cck text field (select list) with the available values as:

live|Make Conference Live
featured_event|Featured Event
form_location|Location
form_hotel|Hotel

devel for this node shows:
http://drupal.org/files/Screenshot-1.png
as you can see all options are set for this node.

I then have a view that does a filter on this field, set to
http://drupal.org/files/Screenshot-2.png

Here is what the query looks like:
http://drupal.org/files/Screenshot-3.png

However, the corresponding nodes do not seem to show. If I remove one of the search terms then the nodes show correctly. So search for 'live featured_event' does NOT work and searching for either 'live' or 'featured_event' does work. i can't search for both.

I only found one other topic that seems to discuss similar issues: #523114: "contains all words" filter NOT WORKING - Outer brackets missing in the SQL query . It is old and I didn't want to reopen.

My server is running CentOS 5 with PHP 5.2 and MySQL 5.0.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nicholas.alipaz’s picture

The links above did not seem to work, please see the reference attachments below the post.

nicholas.alipaz’s picture

I have now tested this on my local machine with Ubuntu 10.04.1 and PHP 5.2/MySQL 5.1. Same results. The view is a block display.

nicholas.alipaz’s picture

FileSize
77.12 KB

hhmmm, looks like the issue here is that the values of multiple checkboxes get stored in multiple rows in the database (Screenshot 4). So the sql statement used to filter does not seem like it would work properly. I could be wrong, let me know your input.

nicholas.alipaz’s picture

to work around my issue I have had to resort to creating each checkbox individually as single on/off checkboxes and filtering like that. Luckily content insertion has not yet been performed for this site, so no need to update a mass of nodes.

dawehner’s picture

Category: bug » task
Priority: Major » Normal

I think views will have to implement the "'@label (!name) - Allowed values" of cck in the fieldapi integration.

nicholas.alipaz’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev

hhmmm, don't really know how this got set to 7.x (perhaps my user error). I was reporting as 6.x, but nonetheless it is an issue in both I am sure.

MustangGB’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)