From 540e7e9576efebecc3ef35f06bdf0c95a1e95dd7 Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 13 Jun 2023 07:01:03 +0000 Subject: [PATCH] * GetSetting before initTable. --- module/bug/ui/browse.html.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/bug/ui/browse.html.php b/module/bug/ui/browse.html.php index 065dbbc0cd..559ddb2acd 100644 --- a/module/bug/ui/browse.html.php +++ b/module/bug/ui/browse.html.php @@ -110,9 +110,6 @@ $config->bug->dtable->fieldList['execution']['map'] = $executions; if($product->type == 'normal') unset($config->bug->dtable->fieldList['branch']); if(!$canBatchAction) $config->bug->dtable->fieldList['id']['type'] = 'id'; -$bugs = initTableData($bugs, $config->bug->dtable->fieldList, $this->bug); -$data = array_values($bugs); - $footToolbar = $canBatchAction ? array('items' => array ( array('type' => 'btn-group', 'items' => array @@ -210,11 +207,12 @@ if(empty($bugs)) else { $cols = $this->loadModel('datatable')->getSetting('bug'); + $bugs = initTableData($bugs, $cols, $this->bug); dtable ( set::cols($cols), - set::data($data), + set::data(array_values($bugs)), set::userMap($users), set::customCols(true), set::checkable($canBatchAction),