* Fix bug #47926, set module owner as assignedTo.

This commit is contained in:
liumengyi
2024-04-17 16:52:46 +08:00
parent bae415b20b
commit 0aa2ba9af5
+7
View File
@@ -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));
}