Merge branch 'sprint/176_songchenxuan_45545' into 'master'

Sprint/176 songchenxuan 45545

See merge request easycorp/zentaopms!880
This commit is contained in:
朱金勇
2021-12-10 07:16:22 +00:00
10 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -966,7 +966,7 @@ class bug extends control
if($this->app->tab == 'execution' or $this->app->tab == 'project')
{
$objectID = $this->app->tab == 'project' ? $bug->project : $bug->execution;
$productBranches = (isset($product->type) and $product->type != 'normal') ? $this->loadModel('execution')->getBranchByProduct($productID, $objectID) : array();
$productBranches = (isset($product->type) and $product->type != 'normal') ? $this->loadModel('execution')->getBranchByProduct($productID, $objectID, 'all') : array();
$branches = isset($productBranches[$productID]) ? array(BRANCH_MAIN => $this->lang->branch->main) + $productBranches[$productID] : array();
}
else