diff --git a/module/execution/control.php b/module/execution/control.php index 26f0269555..62467b9a6c 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1452,7 +1452,7 @@ class execution extends control $this->view->name = $name; $this->view->code = $code; $this->view->team = $team; - $this->view->teams = array(0 => '', $projectID => $project->name) + $this->execution->getCanCopyObjects((int)$projectID); + $this->view->teams = array(0 => '', $projectID => (isset($project->name) ? $project->name : '')) + $this->execution->getCanCopyObjects((int)$projectID); $this->view->allProjects = array(0 => '') + $this->project->getPairsByModel('all', 0, 'noclosed'); $this->view->executionID = $executionID; $this->view->productID = $productID;