From 9adbe3e2b5063597bc2ac80e6846fb122b050911 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Sat, 14 Sep 2024 16:34:57 +0800 Subject: [PATCH] * [bug#55423,done,0.5h,0h] Fix PMUserID empty error. --- module/my/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/my/control.php b/module/my/control.php index c9716941a0..c493b1f1ae 100755 --- a/module/my/control.php +++ b/module/my/control.php @@ -727,7 +727,9 @@ class my extends control { if(!empty($project->PM) && !in_array($project->PM, $accounts)) $accounts[] = $project->PM; } + $PMList = $this->user->getListByAccounts($accounts, 'account'); + foreach($projects as $project) $project->PMUserID = $PMList[$project->PM]->id; $this->view->title = $this->lang->my->common . $this->lang->hyphen . $this->lang->my->project; $this->view->users = $this->user->getPairs('noletter');