diff --git a/module/bug/zen.php b/module/bug/zen.php index 4fc58a71b5..66abd3c23e 100644 --- a/module/bug/zen.php +++ b/module/bug/zen.php @@ -881,6 +881,13 @@ class bugZen extends bug $modules = $this->tree->getOptionMenu($productID, 'bug', 0, ($branch === 'all' || !isset($bug->branches[$branch])) ? 'all' : $branch); $moduleID = isset($modules[$moduleID]) ? $moduleID : ''; + /* Get module owner. */ + if(!empty($moduleID)) + { + list($account, $realname) = $this->bug->getModuleOwner($moduleID, $productID); + $this->updateBug($bug, array('assignedTo' => $account)); + } + return $this->updateBug($bug, array('modules' => $modules, 'moduleID' => $moduleID)); }