CCK Facets returns empty result set for “0” (zero) selection

osherl - May 1, 2009 - 13:38
Project:CCK Facets
Version:6.x-1.x-dev
Component:Number Facets
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

I use CCK Facets to filter content by safety rating. The "Rating" field is created as a CCK Number fields with values 0 through 10 (0 is the safest). Ratings 1 through 10 work fine, but 0 returns an empty result set. It must be an "if" statement somewhere that evaluates "0" as FALSE and skips processing.

Please point me to the module/function that needs to be modified to rectify this.

In addition, I would like to select content using a range from 0 through x (x is the selection). Would be ideal to use a slider. So, if the user selects 2 then then content with Rating within the range 0 through 2 will be selected. Can this be done in Faceted Search? Exhibit handles it very nicely but it has other issues.

#1

David Lesieur - May 1, 2009 - 18:09
Category:support request» bug report
Status:active» duplicate

This bug is discussed in #400810: Empty result set when search key value is 0.

 
 

Drupal is a registered trademark of Dries Buytaert.