summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-14 08:42:32 +0200
committerlpsolit%gmail.com <>2005-10-14 08:42:32 +0200
commit4587cba89586ff3e00ed863748857ecf56a41532 (patch)
tree44a8f86ab9f4a9a3e8f47426de2ce334a66ca9d7 /query.cgi
parent727410cca17ff168ba4337de42782d496b9679fc (diff)
downloadbugzilla-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-xquery.cgi18
1 files changed, 1 insertions, 17 deletions
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.