Commit 9f5ecaad authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 364286: Code in Classification->products() is suboptimal - Patch by…

Bug 364286: Code in Classification->products() is suboptimal - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
parent 4aad094a
......@@ -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'};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment