* userModel: rename the getUserDetailsForAPI method to getListForGitLabAPI.

This commit is contained in:
liugang
2023-12-11 14:42:22 +08:00
parent a8f09b9f42
commit 7bf65d8920
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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();
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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();
+2 -2
View File
@@ -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);
}
/**