* userModel: rename the getUserDetailsForAPI method to getListForGitLabAPI.
This commit is contained in:
@@ -127,7 +127,7 @@ class productIssueEntry extends entry
|
||||
foreach($issue->assignedTo as $account) $accountList[] = $account;
|
||||
$accountList[] = $issue->openedBy;
|
||||
$accountList = array_unique($accountList);
|
||||
$profileList = $this->loadModel('user')->getUserDetailsForAPI($accountList);
|
||||
$profileList = $this->loadModel('user')->getListForGitLabAPI($accountList);
|
||||
|
||||
/* Set the user detail to assignedTo and openedBy. */
|
||||
foreach($issue->assignedTo as $key => $account)
|
||||
@@ -190,7 +190,7 @@ class productIssueEntry extends entry
|
||||
|
||||
/* Format user detail and date. */
|
||||
$accountList = array_unique($accountList);
|
||||
$profileList = $this->loadModel('user')->getUserDetailsForAPI($accountList);
|
||||
$profileList = $this->loadModel('user')->getListForGitLabAPI($accountList);
|
||||
foreach($actions as $key => $action)
|
||||
{
|
||||
$action->actor = isset($profileList[$action->actor]) ? $profileList[$action->actor] : array();
|
||||
|
||||
@@ -310,7 +310,7 @@ class productIssuesEntry extends entry
|
||||
$userList[] = $issue->openedBy;
|
||||
}
|
||||
$userList = array_unique($userList);
|
||||
$userDetails = $this->loadModel('user')->getUserDetailsForAPI($userList);
|
||||
$userDetails = $this->loadModel('user')->getListForGitLabAPI($userList);
|
||||
|
||||
/**
|
||||
* Set the user detail to assignedTo and openedBy.
|
||||
|
||||
@@ -2798,7 +2798,7 @@ class userModel extends model
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getUserDetailsForAPI($userList)
|
||||
public function getListForGitLabAPI($userList)
|
||||
{
|
||||
$users = $this->dao->select($this->config->user->detailFields)->from(TABLE_USER)->where("account")->in($userList)->fetchAll();
|
||||
|
||||
|
||||
@@ -981,9 +981,9 @@ class userTest
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function getUserDetailsForAPITest($userList)
|
||||
public function getListForGitLabAPITest($userList)
|
||||
{
|
||||
return $this->objectModel->getUserDetailsForAPI($userList);
|
||||
return $this->objectModel->getListForGitLabAPI($userList);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user