I assume this is because of PHP's sloppy casting of 0 to null to false to ""...

This demonstrates the problem:

http://img.skitch.com/20090618-fu3pf2683746dasqwut87rnmhc.jpg

CommentFileSizeAuthor
#2 fix-0-facets-495012-2.patch814 bytespwolanin

Comments

pwolanin’s picture

Likely the cause is here in the query class:

  public function has_filter($name, $value) {
    foreach ($this->fields as $pos => $values) {
      if (!empty($values['#name']) && !empty($values['#value']) && $values['#name'] == $name && $values['#value'] == $value) {
        return TRUE;
      }
    }
    return FALSE;
  }
pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new814 bytes
pwolanin’s picture

Status: Needs review » Fixed

committed to 6.x

Status: Fixed » Closed (fixed)

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