* Modify the code.

This commit is contained in:
tianshujie
2021-11-19 11:27:36 +08:00
parent 3045b1a234
commit 53a34f1546
3 changed files with 10 additions and 7 deletions
+5
View File
@@ -977,6 +977,11 @@ class testcase extends control
break;
}
}
if($this->app->tab == 'project') $productBranches = $this->loadModel('execution')->getBranchByProduct(array_keys($products), $this->session->project);
$this->view->products = $products;
$this->view->productBranches = isset($productBranches) ? $productBranches : $this->loadModel('branch')->getByProducts(array_keys($products), 'ignoreNormal');
}
// if(!$this->testcase->forceNotReview()) unset($this->lang->testcase->statusList['wait']); /* Bug#1343 */