diff --git a/module/execution/control.php b/module/execution/control.php index 4bd148740c..11e43d16aa 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -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(); } diff --git a/module/execution/view/create.html.php b/module/execution/view/create.html.php index 25bc3cdfe3..94a8cc1f02 100644 --- a/module/execution/view/create.html.php +++ b/module/execution/view/create.html.php @@ -48,7 +48,7 @@ execution->cancelCopy);?> execution->copyNoExecution);?> -model);?> +model) ? $project->model : '');?>