* code for bug#360.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -97,7 +97,7 @@ class buildModel extends model
|
||||
if(strpos($params, 'notrunk') === false) $sysBuilds = $sysBuilds + array('trunk' => 'Trunk');
|
||||
|
||||
$builds = $this->dao->select('id,name')->from(TABLE_BUILD)
|
||||
->where('product')->eq($products)
|
||||
->where('product')->in($products)
|
||||
->andWhere('deleted')->eq(0)
|
||||
->orderBy('date desc, id desc')->fetchPairs();
|
||||
if(!$builds) return $sysBuilds;
|
||||
|
||||
Reference in New Issue
Block a user