From 5b4da0d9541983ef9feca27f2e2aee573ee604b7 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 19 Aug 2024 07:00:10 +0000 Subject: [PATCH] * [bug#54201,done,0.5h] fix code error. --- module/my/ui/testcase.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/my/ui/testcase.html.php b/module/my/ui/testcase.html.php index af310a83ed..8316b97e4e 100644 --- a/module/my/ui/testcase.html.php +++ b/module/my/ui/testcase.html.php @@ -41,7 +41,7 @@ if($type == 'assigntome') $config->my->testcase->dtable->fieldList['actions']['list']['createBug']['url'] = array('module' => 'testcase', 'method' => 'createBug', 'params' => 'product={product}&caseID={case}&version={version}&runID={run}'); $config->my->testcase->dtable->fieldList['actions']['menu'] = array('runCase', 'runResult', 'edit', 'createBug', 'create'); } -foreach($config->my->testcase->dtable->fieldList['actions']['list'] as &$action) $action['url']['params'] = str_replace(array('{caseID}', '%executionID%'), array('{id}', '0'), $action['url']['params']); +foreach($config->my->testcase->dtable->fieldList['actions']['list'] as &$action) $action['url']['params'] = str_replace(array('{caseID}', '%executionID%', '{runID}'), array('{id}', '0', '0'), $action['url']['params']); $cases = initTableData($cases, $config->my->testcase->dtable->fieldList, $this->testcase); $data = array_values($cases);