From 5156963cece2435bada13278c0bebb5489a4be8c Mon Sep 17 00:00:00 2001 From: liuhong Date: Tue, 7 Feb 2023 07:23:34 +0000 Subject: [PATCH] * Adjust code for 329. --- module/bug/control.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 1fea4f9807..98408efe60 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -565,8 +565,9 @@ class bug extends control } else { - $builds = $this->loadModel('build')->getBuildPairs($productID, $branch, 'noempty,noterminate,nodone,withbranch,noreleased'); - $stories = $this->story->getProductStoryPairs($productID, $branch, 0, 'all','id_desc', 0, 'full', 'story', false); + $moduleID = $moduleID ? $moduleID : 0; + $builds = $this->loadModel('build')->getBuildPairs($productID, $branch, 'noempty,noterminate,nodone,withbranch,noreleased'); + $stories = $this->story->getProductStoryPairs($productID, $branch, $moduleID, 'all','id_desc', 0, 'full', 'story', false); } $moduleOwner = $this->bug->getModuleOwner($moduleID, $productID);