diff --git a/module/execution/model.php b/module/execution/model.php index 91468449ee..bc4b048e4c 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 @@