diff --git a/module/gitlab/control.php b/module/gitlab/control.php
index 4f9408b36a..ae65e37916 100644
--- a/module/gitlab/control.php
+++ b/module/gitlab/control.php
@@ -374,9 +374,29 @@ class gitlab extends control
$branches = $this->gitlab->apiGetBranches($gitlabID, $projectID);
$options = "";
- foreach($branches as $index =>$branch)
+ foreach($branches as $branch)
{
- $options .= "";
+ $options .= "";
+ }
+ $this->send($options);
+ }
+
+ /**
+ * AJAX: Get MR user pairs to select assignee_ids and reviewer_ids.
+ *
+ * @param int $gitlabID
+ * @access public
+ * @return void
+ */
+ public function ajaxGetMRUserPairs($gitlabID)
+ {
+ if(!$gitlabID) return $this->send(array('message' => array()));
+
+ $users = $this->gitlab->getUserIdRealnamePairs($gitlabID);
+ $options = "";
+ foreach($users as $index => $user)
+ {
+ $options .= "";
}
$this->send($options);
}