From a629a26eb8f16f99b3508d79e72a5c2c4a4e9b14 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Thu, 26 Oct 2023 08:56:47 +0800 Subject: [PATCH] * Fix error of editing testcase in testcase::view. --- module/testcase/ui/view.html.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/testcase/ui/view.html.php b/module/testcase/ui/view.html.php index 6e4b23b202..c6462cde44 100644 --- a/module/testcase/ui/view.html.php +++ b/module/testcase/ui/view.html.php @@ -266,6 +266,14 @@ else ); $actions = $this->loadModel('common')->buildOperateMenu($case); + foreach($actions as $actionType => $typeActions) + { + foreach($typeActions as $index => $action) + { + if(!isset($action['url'])) continue; + $actions[$actionType][$index]['url'] = str_replace('%executionID%', (string)$executionID, $action['url']); + } + } } if($case->stage)