Closed (fixed)
Project:
Subscriptions
Version:
4.7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Mar 2007 at 19:12 UTC
Updated:
16 Mar 2007 at 21:17 UTC
If a vocabulary doesn't have any terms yet AND if that vocabulary happens to be the last in queue (circa line 965 in subscriptions_taxa()), then no form from prior non-empty vocabularies are shown.
The problem is
if (count($tree)==0){ $output=NULL; }
Whether or not the entire form gets displayed relies entirely on the last vocabulary checked.
To fix, set $ttc = 0 (total tree count) above the foreach loop, inside the loop set $ttc += count($tree) on each iteration and change the problem line with
if ( $ttc == 0 ) { $output = NULL; }
Comments
Comment #1
mindless commentedI just changed the condition to if (empty($orgstate)).. please try it out from next 4.7.x-1.x-dev build or DRUPAL-4-7 branch.
Comment #2
MaskedMarauder commentedI just tried it. It works OK.
Comment #3
(not verified) commented