From 22c1f66fddc1f846c4282fa3453bc17f8ec203b6 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Fri, 26 Mar 2021 08:56:14 +0800 Subject: [PATCH] * Fix bug #11514. --- module/bug/control.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index d0a4d0858b..d683410dd2 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -999,10 +999,23 @@ class bug extends control die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent')); } + if($this->app->openApp == 'project') + { + $users = $this->project->getTeamMemberPairs($bug->project, 'nodeleted', $bug->assignedTo); + } + elseif($this->app->openApp == 'execution') + { + $users = $this->execution->getTeamMemberPairs($bug->execution, 'nodeleted', $bug->assignedTo); + } + else + { + $users = $this->user->getPairs('nodeleted|nofeedback', $bug->assignedTo); + } + $this->view->title = $this->products[$bug->product] . $this->lang->colon . $this->lang->bug->assignedTo; $this->view->position[] = $this->lang->bug->assignedTo; - $this->view->users = $this->user->getPairs('nodeleted|nofeedback', $bug->assignedTo); + $this->view->users = $users; $this->view->bug = $bug; $this->view->bugID = $bugID; $this->view->actions = $this->action->getList('bug', $bugID);