From 0aa2ba9af5a8bd5d26b9f5842afd6b4bcaba94f6 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 17 Apr 2024 16:52:46 +0800 Subject: [PATCH] * Fix bug #47926, set module owner as assignedTo. --- module/bug/zen.php | 7 +++++++ 1 file changed, 7 insertions(+) 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)); }