Merge branch 'sprint/216_mayue_bug#25358' into 'master'

* Fix bug #25358.

See merge request easycorp/zentaopms!4571
This commit is contained in:
孙广明
2022-07-15 03:14:57 +00:00
2 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -4374,7 +4374,14 @@ class executionModel extends model
}
}
common::printIcon('programplan', 'edit', "stageID=$execution->id&projectID=$execution->project", $execution, 'list', '', '', 'iframe', true);
if($execution->type == 'stage')
{
common::printIcon('programplan', 'edit', "stageID=$execution->id&projectID=$execution->project", $execution, 'list', '', '', 'iframe', true);
}
else
{
common::printIcon('execution', 'edit', "executionID=$execution->id", $execution, 'list', '', '', 'iframe', true);
}
$disabled = !empty($execution->children) ? ' disabled' : '';
if($execution->status != 'closed' and common::hasPriv('execution', 'close', $execution))