diff --git a/module/testcase/config/table.php b/module/testcase/config/table.php index 1cf6e1e9a4..9d96a4f749 100644 --- a/module/testcase/config/table.php +++ b/module/testcase/config/table.php @@ -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'); diff --git a/module/testcase/ui/bugs.html.php b/module/testcase/ui/bugs.html.php index b445c71f0e..40a473847e 100644 --- a/module/testcase/ui/bugs.html.php +++ b/module/testcase/ui/bugs.html.php @@ -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();