znt/module/testcase/ui/bugs.html.php

29 lines
913 B
PHP

<?php
declare(strict_types=1);
/**
* The bugs view file of testcase module of ZenTaoPMS.
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author Yuting Wang <wangyuting@easycorp.ltd>
* @package testcase
* @link https://www.zentao.net
*/
namespace zin;
set::title($lang->testcase->bugs);
$linkParams = '';
foreach($app->rawParams as $key => $value) $linkParams = $key != 'orderBy' ? "{$linkParams}&{$key}={$value}" : "{$linkParams}&orderBy={name}_{sortType}";
dtable
(
set::cols($config->testcase->bug->dtable->fieldList),
set::data(array_values($bugs)),
set::userMap($users),
set::orderBy($orderBy),
set::sortLink(createLink($app->rawModule, $app->rawMethod, $linkParams))
);
render();