From 2435047be614cd62c345d355a024a4752bd0b424 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Fri, 22 Dec 2023 09:13:26 +0800 Subject: [PATCH] * Adjust teamsGroups to teamsGroup. fix the bug #42184. --- module/user/model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/user/model.php b/module/user/model.php index bf5d32d611..f3d521b017 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -2198,9 +2198,9 @@ class userModel extends model if(empty($projects)) return false; /* Get team group. */ - $stmt = $this->dao->select('root,account')->from(TABLE_TEAM)->where('type')->eq('project')->andWhere('root')->in($projectIDList)->andWhere('root')->ne(0)->query(); - $teamsGroups = array(); - while($team = $stmt->fetch()) $teamsGroup[$team->root][$team->account] = $team->account; + $stmt = $this->dao->select('root,account')->from(TABLE_TEAM)->where('type')->eq('project')->andWhere('root')->in($projectIDList)->andWhere('root')->ne(0)->query(); + $teamsGroup = array(); + while($team = $stmt->fetch()) $teamsGroup[$team->root][$team->account] = $team->account; /* Get white list group. */ $stmt = $this->dao->select('objectID,account')->from(TABLE_ACL)->where('objectType')->eq('project')->andWhere('objectID')->in($projectIDList)->query();