From 4587cba89586ff3e00ed863748857ecf56a41532 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Fri, 14 Oct 2005 06:42:32 +0000 Subject: Bug 306601: Bugzilla::Classification needs a products() method - Patch by André Batosti r=LpSolit a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- query.cgi | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index 4a414d46c..986e2350b 100755 --- a/query.cgi +++ b/query.cgi @@ -298,23 +298,7 @@ $vars->{'product'} = \@products; # Create data structures representing each classification if (Param('useclassification')) { - my @classifications = (); - - my $class = $user->get_selectable_classifications; - foreach my $c (@$class) { - # Extract the name of products being in this classification. - my @prod_in_class - = grep { $_->classification_id == $c->id } @selectable_product_objects; - @prod_in_class = map { $_->name } @prod_in_class; - # Create hash to hold attributes for each classification. - my %classification = ( - 'name' => $c->name, - 'products' => \@prod_in_class - ); - # Assign hash back to classification array. - push @classifications, \%classification; - } - $vars->{'classification'} = \@classifications; + $vars->{'classification'} = $user->get_selectable_classifications; } # We use 'component_' because 'component' is a Template Toolkit reserved word. -- cgit v1.2.3-24-g4f1b