diff --git a/module/bug/control.php b/module/bug/control.php index 4c434ef415..1a61f8425b 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -836,7 +836,9 @@ class bug extends control if($this->post->bugIDList) { $bugIDList = $this->post->bugIDList; - foreach($_POST as $postKey => $postValue) unset($_POST[$postKey]); + + /* Reset $_POST. Do not unset that because the function of close need that in model. */ + $_POST = array(); $bugs = $this->bug->getList($bugIDList); foreach($bugs as $bugID => $bug) diff --git a/module/bug/model.php b/module/bug/model.php index 100ff52e7f..994c7124f9 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -78,6 +78,7 @@ class bugModel extends model $data = fixer::input('post')->get(); $actions = array(); + /* Get pairs(moduleID => moduleOwner) for bug. */ $stmt = $this->dbh->query($this->loadModel('tree')->buildMenuQuery($productID, 'bug', $startModuleID = 0)); $moduleOwners = array(); while($module = $stmt->fetch()) $moduleOwners[$module->id] = $module->owner; diff --git a/module/bug/view/sendmail.html.php b/module/bug/view/sendmail.html.php index af791bb650..003295c46f 100644 --- a/module/bug/view/sendmail.html.php +++ b/module/bug/view/sendmail.html.php @@ -24,15 +24,7 @@ if($onlybody) $_GET['onlybody'] = 'no';