* Code for task #73242.

This commit is contained in:
tanghucheng
2022-10-27 08:50:42 +08:00
parent d96d6bb803
commit ba55e70ae2
2 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -1646,7 +1646,7 @@ class execution extends control
$this->view->linkedBranches = $linkedBranches;
}
if(!$project->division)
if(!empty($project) and !$project->division)
{
$products = $this->loadModel('product')->getProducts($projectID);
$branches = $this->project->getBranchesByProject($projectID);
@@ -1775,6 +1775,7 @@ class execution extends control
$this->view->from = $this->app->tab;
$this->view->isStage = (isset($project->model) and $project->model == 'waterfall') ? true : false;
$this->view->project = $project;
$this->view->division = !empty($project) ? $project->division : 1;
$this->display();
}