Supplant bug solved
This commit is contained in:
parent
79b949f86f
commit
426660b31d
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.405.15) stable; urgency=low
|
||||
hedera-web (1.405.16) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<htk-repeater form-id="iter">
|
||||
<db-model property="model">
|
||||
<custom>
|
||||
SELECT u.id, u.name, u.nickname
|
||||
SELECT u.id, u.name, u.nickname, u.active
|
||||
FROM account.user u
|
||||
WHERE u.name LIKE CONCAT('%', #user, '%')
|
||||
OR u.nickname LIKE CONCAT('%', #user, '%')
|
||||
|
|
|
@ -13,8 +13,13 @@ Hedera.Users = new Class
|
|||
|
||||
,onChangeUserClick: function (button, form)
|
||||
{
|
||||
this.gui.supplantUser (form.get ('name'),
|
||||
this.onUserSupplant.bind (this));
|
||||
console.log (form.get ('active'));
|
||||
|
||||
if (form.get ('active'))
|
||||
this.gui.supplantUser (form.get ('name'),
|
||||
this.onUserSupplant.bind (this));
|
||||
else
|
||||
Htk.Toast.showError (_('The user account is disabled'));
|
||||
}
|
||||
|
||||
,onUserSupplant: function (userName)
|
||||
|
|
Loading…
Reference in New Issue