* Adjust bind user.
This commit is contained in:
@@ -478,8 +478,8 @@ class gitlabModel extends model
|
||||
while(true)
|
||||
{
|
||||
/* Also use `per_page=20` to fetch users in API. Fetch active users only. */
|
||||
$url = sprintf($apiRoot, "/users") . "&order_by={$order}&sort={$sort}&page={$page}&per_page=20&active=true";
|
||||
$result = json_decode(commonModel::http($url));
|
||||
$url = sprintf($apiRoot, "/users") . "&order_by={$order}&sort={$sort}&page={$page}&per_page=20&active=true";
|
||||
$result = json_decode(commonModel::http($url));
|
||||
if(!empty($result))
|
||||
{
|
||||
$response = array_merge($response, $result);
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
<td class='text-left'>
|
||||
<strong><?php echo $gitlabUser->realname;?></strong>
|
||||
<br>
|
||||
<?php if($gitlabUser->email) echo $gitlabUser->account . " <" . $gitlabUser->email . ">";?>
|
||||
<?php echo $gitlabUser->account;?>
|
||||
<?php if($gitlabUser->email) echo " <" . $gitlabUser->email . ">";?>
|
||||
</td>
|
||||
<td><?php echo html::select("zentaoUsers[$gitlabUser->id]", $userPairs, '', "class='form-control select chosen'" );?></td>
|
||||
<td></td>
|
||||
@@ -46,7 +47,8 @@
|
||||
<td>
|
||||
<strong><?php echo $gitlabUser->realname;?></strong>
|
||||
<br>
|
||||
<?php if($gitlabUser->email) echo $gitlabUser->account . " <" . $gitlabUser->email . ">";?>
|
||||
<?php echo $gitlabUser->account;?>
|
||||
<?php if($gitlabUser->email) echo " <" . $gitlabUser->email . ">";?>
|
||||
</td>
|
||||
<td><?php echo html::select("zentaoUsers[$gitlabUser->id]", $userPairs, $gitlabUser->zentaoAccount, "class='form-control select chosen'" );?></td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user