From e31f207b0b75f5537b1705eb65413474f283481d Mon Sep 17 00:00:00 2001 From: mayue Date: Fri, 15 Jul 2022 10:45:23 +0800 Subject: [PATCH] * Fix bug #25358. --- module/execution/model.php | 9 ++++++++- module/project/view/execution.html.php | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index aea6c8cfff..09fd623513 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -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)) diff --git a/module/project/view/execution.html.php b/module/project/view/execution.html.php index 4f96d88413..59fa5c2cc1 100644 --- a/module/project/view/execution.html.php +++ b/module/project/view/execution.html.php @@ -54,7 +54,7 @@
- + - +
@@ -70,7 +70,7 @@ task->consumedAB;?> task->leftAB;?> execution->burn;?> actions;?>actions;?>