* Add pager on feature bar.

* Format codes.
This commit is contained in:
daitingting
2023-11-21 05:20:32 +00:00
parent 8464662c36
commit d96afd13dc
3 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -1309,7 +1309,7 @@ class project extends control
*/
public function activate(int $projectID)
{
$project = $this->project->getByID($projectID);
$project = $this->project->getByID($projectID);
if(!empty($_POST))
{
+1 -1
View File
@@ -13,7 +13,7 @@ namespace zin;
$programAclList = array();
$projectAclList = array();
foreach($lang->program->subAcls as $acl => $label) $programAclList[] = array('text' => $label, 'value' => $acl);
foreach($lang->project->acls as $acl => $label) $projectAclList[] = array('text' => $label, 'value' => $acl);
foreach($lang->project->acls as $acl => $label) $projectAclList[] = array('text' => $label, 'value' => $acl);
jsVar('LONG_TIME', LONG_TIME);
jsVar('weekend', $config->execution->weekend);
+11 -9
View File
@@ -10,7 +10,7 @@ declare(strict_types=1);
*/
namespace zin;
$linkParams = "projectID={$project->id}&productID={$productID}&branch=$branchID&orderBy=status,id_desc&build=$buildID&type={key}" . ($type == 'bysearch' ? '' : "&param=$param");
$linkParams = "projectID={$project->id}&productID={$productID}&branch=$branchID&orderBy=status,id_desc&build=$buildID&type={key}" . ($type == 'bysearch' ? '' : "&param=$param") . "&recTotal={$pager->recTotal}&recPerpage={$pager->recPerPage}";
featureBar
(
set::current($type),
@@ -29,14 +29,16 @@ toolbar
'url' => createLink('bug', 'export', "productID={$productID}&orderBy=$orderBy&browseType=&projectID={$project->id}"),
'data-toggle' => 'modal'
))) : null,
$canCreate ? item(set(array
$canCreate ? item
(
'text' => $lang->bug->create,
'icon' => 'plus',
'type' => 'primary',
'url' => createLink('bug', 'create', "productID={$productID}&branch={$branchID}&extras=projectID={$project->id}")
)),
setData('app', 'project')
set(array
(
'text' => $lang->bug->create,
'icon' => 'plus',
'type' => 'primary',
'url' => createLink('bug', 'create', "productID={$productID}&branch={$branchID}&extras=projectID={$project->id}")
)),
setData('app', 'project')
) : null
);
@@ -51,7 +53,7 @@ sidebar
)))
);
$canBatchAssignTo = common::hasPriv('bug', 'batchAssignTo');
$canBatchAssignTo = hasPriv('bug', 'batchAssignTo');
$config->bug->dtable->fieldList['module']['map'] = $modulePairs;
$config->bug->dtable->fieldList['story']['map'] = $stories;