From e5d370c2afd5cf00886d966a9b5acd7645d2dee3 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 13 Mar 2024 15:31:08 +0800 Subject: [PATCH] * Fix bug #46939. --- module/execution/zen.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/execution/zen.php b/module/execution/zen.php index 1310d1c6e7..6829c10e12 100644 --- a/module/execution/zen.php +++ b/module/execution/zen.php @@ -2004,8 +2004,9 @@ class executionZen extends execution array_map(function($executionProduct) use(&$multiBranchProduct){if($executionProduct->type != 'normal') $multiBranchProduct = true;}, $executionProductList); $importPlanStoryTips = $multiBranchProduct ? $this->lang->execution->importBranchPlanStory : $this->lang->execution->importPlanStory; - $confirmURL = inlink('create', "projectID=$projectID&executionID=$executionID©ExecutionID=&planID=$planID&confirm=yes"); - $cancelURL = inlink('create', "projectID=$projectID&executionID=$executionID"); + if($execution->type == 'stage') $importPlanStoryTips = str_replace($this->lang->executionCommon, $this->lang->execution->stage, $importPlanStoryTips); + $confirmURL = inlink('create', "projectID=$projectID&executionID=$executionID©ExecutionID=&planID=$planID&confirm=yes"); + $cancelURL = inlink('create', "projectID=$projectID&executionID=$executionID"); return $this->send(array('result' => 'success', 'load' => array('confirm' => $importPlanStoryTips, 'confirmed' => $confirmURL, 'canceled' => $cancelURL))); } }