From bebfa0f8e78e5a485385e4cadd2c09e21e47f7ea Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 13 Sep 2024 10:36:30 +0800 Subject: [PATCH] * [bug#55256,done,0.3h] fix id field miss error. --- module/execution/control.php | 7 ------- module/execution/ui/testcase.html.php | 1 + 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/module/execution/control.php b/module/execution/control.php index 463c275e94..7ef7ce7c35 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -622,14 +622,7 @@ class execution extends control $this->app->loadClass('pager', true); $pager = pager::init($recTotal, $recPerPage, $pageID); - $idFieldList['title'] = $this->lang->idAB; - $idFieldList['name'] = 'id'; - $idFieldList['type'] = 'id'; - $idFieldList['group'] = '1'; - array_unshift($this->config->testcase->dtable->fieldList, $idFieldList); - unset($this->config->testcase->dtable->fieldList['title']['nestedToggle']); - unset($this->config->testcase->dtable->fieldList['id']); if($productID && $products[$productID]->type == 'normal') unset($this->config->testcase->dtable->fieldList['branch']); /* Build the search form. */ diff --git a/module/execution/ui/testcase.html.php b/module/execution/ui/testcase.html.php index b428d9f649..709d935e0e 100644 --- a/module/execution/ui/testcase.html.php +++ b/module/execution/ui/testcase.html.php @@ -61,6 +61,7 @@ foreach($cases as $case) } $cols = $this->loadModel('datatable')->getSetting('execution', 'testcase'); +$cols['id']['name'] = $cols['id']['type'] = 'id'; dtable (