From da36997ef6658e3e8a0eedf45e07f8de8e10fedf Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Mon, 28 Sep 2020 11:30:22 +0800 Subject: [PATCH] * Finish bug#3488. --- module/bug/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 74d728315b..a3ffe278d7 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -429,7 +429,7 @@ class bug extends control } - $moduleID = $moduleID ? $moduleID : (int)$this->cookie->lastBugModule; + $moduleID = $moduleID ? $moduleID : 0; $moduleOwner = $this->bug->getModuleOwner($moduleID, $productID); /* Set team members of the latest project as assignedTo list. */ @@ -465,7 +465,7 @@ class bug extends control $this->view->stories = $stories; $this->view->projects = $this->product->getProjectPairs($productID, $branch ? "0,$branch" : 0, $params = 'nodeleted'); $this->view->builds = $builds; - $this->view->moduleID = $moduleID ? $moduleID : (int)$this->cookie->lastBugModule; + $this->view->moduleID = $moduleID ? $moduleID : 0; $this->view->projectID = $projectID; $this->view->taskID = $taskID; $this->view->storyID = $storyID;