mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Bug 364286: Code in Classification->products() is suboptimal - Patch by Fr��d��ric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
This commit is contained in:
parent
49bb218672
commit
1a1680a95b
@ -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'};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user