* Fix bug#42870.

This commit is contained in:
xieqiyu
2024-02-01 10:12:26 +08:00
parent 2874100a1a
commit 19e41fbfec
2 changed files with 7 additions and 7 deletions
+3 -2
View File
@@ -199,8 +199,9 @@ $config->testcase->group->dtable->fieldList['actions']['menu'] = array('edit',
$config->testcase->bug = new stdclass();
$config->testcase->bug->dtable = new stdclass();
$config->testcase->bug->dtable->fieldList['id']['title'] = $lang->idAB;
$config->testcase->bug->dtable->fieldList['id']['type'] = 'id';
$config->testcase->bug->dtable->fieldList['id']['title'] = $lang->idAB;
$config->testcase->bug->dtable->fieldList['id']['type'] = 'id';
$config->testcase->bug->dtable->fieldList['id']['sortType'] = false;
$app->loadLang('bug');
$app->loadModuleConfig('bug');
+4 -5
View File
@@ -13,16 +13,15 @@ namespace zin;
set::title($lang->testcase->bugs);
$linkParams = '';
foreach($app->rawParams as $key => $value) $linkParams = $key != 'orderBy' ? "{$linkParams}&{$key}={$value}" : "{$linkParams}&orderBy={name}_{sortType}";
$cols = $config->testcase->bug->dtable->fieldList;
foreach(array_keys($cols) as $colName) $cols[$colName]['sortType'] = false;
dtable
(
set::cols($config->testcase->bug->dtable->fieldList),
set::cols($cols),
set::data(array_values($bugs)),
set::userMap($users),
set::orderBy($orderBy),
set::sortLink(createLink($app->rawModule, $app->rawMethod, $linkParams)),
set::orderBy($orderBy)
);
render();