diff options
author | lpsolit%gmail.com <> | 2005-10-14 08:42:32 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-14 08:42:32 +0200 |
commit | 4587cba89586ff3e00ed863748857ecf56a41532 (patch) | |
tree | 44a8f86ab9f4a9a3e8f47426de2ce334a66ca9d7 /query.cgi | |
parent | 727410cca17ff168ba4337de42782d496b9679fc (diff) | |
download | bugzilla-4587cba89586ff3e00ed863748857ecf56a41532.tar.gz bugzilla-4587cba89586ff3e00ed863748857ecf56a41532.tar.xz |
Bug 306601: Bugzilla::Classification needs a products() method - Patch by André Batosti <batosti@async.com.br> r=LpSolit a=justdave
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -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. |