From 9b1438d40c90b908ebace5b44f51bf7a317c5121 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Mon, 26 Apr 2021 14:03:58 +0800 Subject: [PATCH] * Fix bug #12392. --- module/execution/control.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/module/execution/control.php b/module/execution/control.php index 5382f57de5..ff9790639d 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2044,6 +2044,13 @@ class execution extends control if($unresolvedBugs->count) $tips .= sprintf($this->lang->execution->unresolvedBug, $unresolvedBugs->count); if($tips) $tips = $this->lang->execution->unfinishedExecution . $tips; + $type = $this->dao->select('type')->from(TABLE_EXECUTION)->where('id')->eq($executionID)->fetch('type'); + if($type == 'stage') + { + if($tips) $tips = str_replace($this->lang->executionCommon, $this->lang->project->stage, $tips); + $this->lang->execution->confirmDelete = str_replace($this->lang->executionCommon, $this->lang->project->stage, $this->lang->execution->confirmDelete); + } + echo js::confirm($tips . sprintf($this->lang->execution->confirmDelete, $this->executions[$executionID]), $this->createLink('execution', 'delete', "executionID=$executionID&confirm=yes")); exit; }