* [refac bug #58405] Check project var empty or not.

This commit is contained in:
wangyidong
2024-12-23 14:48:17 +08:00
committed by 孙广明
parent aae5da640b
commit c6fa8c42fa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1056,7 +1056,7 @@ class execution extends control
$this->executionZen->setCopyProjects($project);
$isStage = isset($output['type']) && $output['type'] == 'stage';
if($project->model == 'waterfall' || $project->model == 'waterfallplus')
if($project && ($project->model == 'waterfall' || $project->model == 'waterfallplus'))
{
$this->view->parentStage = 0;
$this->view->parentStages = $this->loadModel('programplan')->getParentStageList($projectID, 0, 0, 'withparent|noclosed|' . ($isStage ? 'stage' : 'notstage'));