* Fix bug #15009 and change config->MR to config->mr.

This commit is contained in:
Guan Xiying
2021-09-08 10:13:28 +08:00
parent 6ba818fd78
commit b305b8c752
8 changed files with 35 additions and 26 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ class mr extends control
/* Fetch user list both in Zentao and current GitLab project. */
$bindedUsers = $this->gitlab->getUserIdRealnamePairs($MR->gitlabID);
$rawProjectUsers = $this->gitlab->apiGetProjectUsers($MR->gitlabID, $MR->targetProject);
$users = array();
$users = array();
foreach($rawProjectUsers as $rawProjectUser)
{
if(!empty($bindedUsers[$rawProjectUser->id])) $users[$rawProjectUser->id] = $bindedUsers[$rawProjectUser->id];