From adecd591abb9f30e4cc93b9dbaea648819e36af7 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Fri, 3 Jan 2025 09:57:48 +0800 Subject: [PATCH] * [misc] set empty idList for default. --- module/bug/control.php | 5 +++-- module/bug/ui/browse.html.php | 2 +- module/execution/control.php | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 8fd4dee3d1..ca9b906f07 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -142,8 +142,9 @@ class bug extends control $this->bugZen->buildBrowseView($bugs, (object)$product, $branch, $browseType, $moduleID, $executions, $param, $orderBy, $pager); - $this->view->from = $from; - $this->view->blockID = $blockID; + $this->view->from = $from; + $this->view->blockID = $blockID; + $this->view->idList = ''; if($from === 'doc') { $docBlock = $this->loadModel('doc')->getDocBlock($blockID); diff --git a/module/bug/ui/browse.html.php b/module/bug/ui/browse.html.php index ec8250b7b1..8a6cdaa509 100644 --- a/module/bug/ui/browse.html.php +++ b/module/bug/ui/browse.html.php @@ -284,7 +284,7 @@ dtable !$isFromDoc ? null : set::afterRender(jsCallback()->call('toggleCheckRows', $idList)), !$isFromDoc ? null : set::height(400), $isFromDoc ? null : set::customCols(true), - $isFormDoc ? null : set::sortLink(inlink('browse', "product={$product->id}&branch={$branch}&browseType={$browseType}¶m={$param}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}")), + $isFromDoc ? null : set::sortLink(inlink('browse', "product={$product->id}&branch={$branch}&browseType={$browseType}¶m={$param}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}")), set::onRenderCell(jsRaw('window.onRenderCell')), set::modules($modulePairs), set::emptyTip($lang->bug->notice->noBug), diff --git a/module/execution/control.php b/module/execution/control.php index 8c180070da..1a4b6b6f29 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -216,6 +216,7 @@ class execution extends control $this->view->features = $this->execution->getExecutionFeatures($execution); $this->view->from = $from; $this->view->blockID = $blockID; + $this->view->idList = ''; if($from === 'doc') {