зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
a096c67b45
Коммит
50bec76937
|
@ -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'};
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче