* fix bug.

This commit is contained in:
z
2020-07-31 11:11:22 +08:00
parent bfd01d5364
commit ea9c4eceb5
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -375,10 +375,14 @@ class my extends control
$this->app->loadConfig('user');
$this->app->loadLang('user');
$userGroups = $this->loadModel('group')->getByAccount($this->app->user->account);
$this->view->title = $this->lang->my->common . $this->lang->colon . $this->lang->my->editProfile;
$this->view->position[] = $this->lang->my->editProfile;
$this->view->user = $this->user->getById($this->app->user->account);
$this->view->rand = $this->user->updateSessionRandom();
$this->view->userGroups = implode(',', array_keys($userGroups));
$this->view->groups = $this->dao->select('id, name')->from(TABLE_GROUP)->fetchPairs('id', 'name');
$this->display();
}
+1 -1
View File
@@ -36,7 +36,7 @@
<th><?php echo $lang->user->join;?></th>
<td class='text-middle'>
<?php echo formatTime($user->join);?>
<?php echo html::hidden('join',$user->join);?>
<?php echo html::hidden('join',$user->join) . html::select('groups[]', $groups, $userGroups, 'multiple=multiple class="form-control hidden"');?>
</td>
</tr>
</table>