* Fix bug#50694,50689
This commit is contained in:
@@ -166,7 +166,31 @@ class gitModel extends model
|
||||
' task:' . join(' ', $objects['tasks']) .
|
||||
' bug:' . join(',', $objects['bugs']));
|
||||
|
||||
$this->repo->saveAction2PMS($objects, $log, $this->repoRoot, $repo->encoding, 'git');
|
||||
if($repo->SCM == 'Gitlab')
|
||||
{
|
||||
if(!isset($gitlabAccountPairs))
|
||||
{
|
||||
$gitlabAccountPairs = array();
|
||||
$gitlabUserList = $this->loadModel('gitlab')->apiGetUsers($repo->gitlab);
|
||||
$acountIDPairs = $this->gitlab->getUserIdAccountPairs($repo->gitlab);
|
||||
foreach($acountIDPairs as $openID => $account)
|
||||
{
|
||||
foreach($gitlabUserList as $gitlabUser)
|
||||
{
|
||||
if($gitlabUser->id == $openID)
|
||||
{
|
||||
$gitlabAccountPairs[$gitlabUser->realname] = $account;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->repo->saveAction2PMS($objects, $log, $this->repoRoot, $repo->encoding, 'git', $gitlabAccountPairs);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->repo->saveAction2PMS($objects, $log, $this->repoRoot, $repo->encoding, 'git');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user