* [bug#55423,done,0.5h,0h] Fix PMUserID empty error.

This commit is contained in:
wangyuting
2024-09-14 16:39:23 +08:00
committed by 谢杞钰
parent 611db398ff
commit 9adbe3e2b5
+2
View File
@@ -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');