* fix bug #792.
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<tr class='text-center'>
|
||||
<td><?php echo zget($lang->action->objectTypes, $action->objectType, '');?></td>
|
||||
<td><?php echo $action->objectID;?></td>
|
||||
<td class='text-left'><?php echo html::a($this->createLink($module, 'view', "id=$action->objectID"), $action->objectName);?></td>
|
||||
<td class='text-left'><?php echo html::a($this->createLink($module, 'view', $action->objectType == 'user' ? "account={$action->objectName}" : "id={$action->objectID}"), $action->objectName);?></td>
|
||||
<td><?php echo $users[$action->actor];?></td>
|
||||
<td><?php echo $action->date;?></td>
|
||||
<td>
|
||||
|
||||
@@ -42,6 +42,8 @@ class userModel extends model
|
||||
*/
|
||||
public function setUserList($users, $account)
|
||||
{
|
||||
$user = $this->getById($account);
|
||||
if($user->deleted) $users[$account] = zget($user, 'realname', $account);
|
||||
return html::select('account', $users, $account, "onchange=\"switchAccount(this.value, '{$this->app->getMethodName()}')\" class='form-control chosen'");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user