Merge branch 'sprint/191_liumengyi_22628' into 'master'

* Fix bug #22628.

See merge request easycorp/zentaopms!3485
This commit is contained in:
李玉春
2022-05-18 07:32:38 +00:00
+1 -1
View File
@@ -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;