Facet links are broken when filtering for uid:0 (Anonymous)

JacobSingh - June 18, 2009 - 07:36
Project:Apache Solr Search Integration
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

pwolanin - June 18, 2009 - 19:18

Likely the cause is here in the query class:

<?php
 
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;
  }
?>

#2

pwolanin - June 18, 2009 - 19:25
Status:active» needs review
AttachmentSize
fix-0-facets-495012-2.patch 814 bytes

#3

pwolanin - June 18, 2009 - 20:47
Status:needs review» fixed

committed to 6.x

#4

System Message - July 2, 2009 - 20:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.