* Modify code logic.
This commit is contained in:
@@ -978,10 +978,17 @@ class testcase extends control
|
||||
}
|
||||
}
|
||||
|
||||
if($this->app->tab == 'project') $productBranches = $this->loadModel('execution')->getBranchByProduct(array_keys($products), $this->session->project);
|
||||
if($this->app->tab == 'project')
|
||||
{
|
||||
$productBranches = $this->loadModel('execution')->getBranchByProduct(array_keys($products), $this->session->project);
|
||||
}
|
||||
else
|
||||
{
|
||||
$productBranches = $this->loadModel('branch')->getByProducts(array_keys($products), 'ignoreNormal');
|
||||
}
|
||||
|
||||
$this->view->products = $products;
|
||||
$this->view->productBranches = isset($productBranches) ? $productBranches : $this->loadModel('branch')->getByProducts(array_keys($products), 'ignoreNormal');
|
||||
$this->view->productBranches = $productBranches;
|
||||
}
|
||||
|
||||
// if(!$this->testcase->forceNotReview()) unset($this->lang->testcase->statusList['wait']); /* Bug#1343 */
|
||||
|
||||
Reference in New Issue
Block a user