summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-12-19 17:38:49 +0100
committerlpsolit%gmail.com <>2006-12-19 17:38:49 +0100
commit9f5ecaad75e76200f8c304083a3244eecf801dff (patch)
tree2a5d9930fb29cba089cd62ef411ff69d80bf5900 /Bugzilla
parent4aad094aa406d102927a0665b021ad820c3e6164 (diff)
downloadbugzilla-9f5ecaad75e76200f8c304083a3244eecf801dff.tar.gz
bugzilla-9f5ecaad75e76200f8c304083a3244eecf801dff.tar.xz
Bug 364286: Code in Classification->products() is suboptimal - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Classification.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/Bugzilla/Classification.pm b/Bugzilla/Classification.pm
index 3d264b704..37ae3a0cc 100644
--- a/Bugzilla/Classification.pm
+++ b/Bugzilla/Classification.pm
@@ -106,12 +106,8 @@ sub products {
SELECT id FROM products
WHERE classification_id = ?
ORDER BY name}, undef, $self->id);
-
- my @products;
- foreach my $product_id (@$product_ids) {
- push (@products, new Bugzilla::Product($product_id));
- }
- $self->{'products'} = \@products;
+
+ $self->{'products'} = Bugzilla::Product->new_from_list($product_ids);
}
return $self->{'products'};
}