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:
lpsolit%gmail.com 2006-12-19 08:38:49 +00:00
Родитель a096c67b45
Коммит 50bec76937
1 изменённых файлов: 2 добавлений и 6 удалений

Просмотреть файл

@ -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'};
}