* code for bug#360.

This commit is contained in:
chencongzhi520@gmail.com
2012-12-21 06:09:46 +00:00
parent df2f22fcd6
commit 67014fc6b7
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -126,8 +126,8 @@ class bug extends control
$users = $this->user->getPairs('noletter');
/* Process the openedBuild and resolvedBuild fields. */
foreach($bugs as $bug) $productIdList[] = $bug->product;
$builds = $this->loadModel('build')->getProductBuildPairs($productIdList);
foreach($bugs as $bug) $productIdList[$bug->id] = $bug->product;
$builds = $this->loadModel('build')->getProductBuildPairs(array_unique($productIdList));
foreach($bugs as $key => $bug)
{
$openBuildIdList = explode(',', $bug->openedBuild);