* support multi openedBuilds.
This commit is contained in:
@@ -134,8 +134,15 @@ class bug extends control
|
||||
$builds = $this->loadModel('build')->getProductBuildPairs($productID);
|
||||
foreach($bugs as $key => $bug)
|
||||
{
|
||||
$bugs[$key]->openedBuild = isset($builds[$bug->openedBuild]) ? ($builds[$bug->openedBuild]) : '';
|
||||
$bugs[$key]->resolvedBuild = isset($builds[$bug->resolvedBuild]) ? $builds[$bug->resolvedBuild] : '';
|
||||
$openBuildIdList = explode(',', $bug->openedBuild);
|
||||
$openedBuild = '';
|
||||
foreach($openBuildIdList as $buildID)
|
||||
{
|
||||
$openedBuild .= isset($builds[$buildID]) ? $builds[$buildID] : $buildID;
|
||||
$openedBuild .= ',';
|
||||
}
|
||||
$bug->openedBuild = rtrim($openedBuild, ',');
|
||||
$bug->resolvedBuild = isset($builds[$bug->resolvedBuild]) ? $builds[$bug->resolvedBuild] : $bug->resolvedBuild;
|
||||
}
|
||||
|
||||
$header['title'] = $this->products[$productID] . $this->lang->colon . $this->lang->bug->common;
|
||||
|
||||
Reference in New Issue
Block a user