Download & Extend

Error telling me I need to select a category when I already have several selected

Project:Taxonomy Browser
Version:6.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I have exactly the same issue as described here http://drupal.org/node/299110 but with version 6.x-1.4

If "Make vocabularies collapsible" is checked if TB settings then any attempt to use this form results in message

"You must select at least one category in your search."

Screen shot attached

AttachmentSize
TaxonomyBrowser.jpg42.09 KB

Comments

#1

I have the same issue with this version. The difference here is that I got the following message:

    * warning: Illegal offset type in C:\wamp\www\rnp\sites\all\modules\taxonomy_browser\taxonomy_browser.module on line 595.
    * warning: Illegal offset type in C:\wamp\www\rnp\sites\all\modules\taxonomy_browser\taxonomy_browser.module on line 595.
    * warning: Illegal offset type in C:\wamp\www\rnp\sites\all\modules\taxonomy_browser\taxonomy_browser.module on line 595.
    * warning: Illegal offset type in C:\wamp\www\rnp\sites\all\modules\taxonomy_browser\taxonomy_browser.module on line 595.
    * You must select at least one category in your search.

The function in the code it is referring to is this:

581 /**
582  * Transforms an unpredictably and irregularly nested set of tids (as returned
583  * from a taxonomy form) into a linear array of tids.
584  */
585 function _taxonomy_browser_get_tid_list($tids = NULL, $include_children = FALSE) {
586   static $tid_list;
587
588   if (isset($tids) && is_array($tids)) {
589     $tid_list = array();
590     foreach ($tids as $key => $tid) {
591       if (!empty($tid)) {
592         if (is_array($tid)) {
593           foreach ($tid as $key2 => $tid2) {
594             if (!empty($tid2)) {
595               $tid_list[$tid2] = $tid2;
596             }
597           }
598         }
599         else {
600           $tid_list[$tid] = $tid;
601         }
602       } /* end !empty */
603     } /* end foreach */
604   }
605  
606   if ($include_children) {
607     foreach ($tid_list as $tid) {
608       _taxonomy_browser_get_kids($tid_list, $tid);
609     }
610   }
611
612   return $tid_list;
613 }

I am using PHP 5.2.11, Apache 2.2.11 and MySQL 5.1.36. If I uncheck the "Make vocabularies collapsible" checkbox it goes away. Any fixes on this yet?

#2

Same errors. Please fix.

#3

+1