Исправлен баг с валидатором ника в форме смены никнейма

This commit is contained in:
ErickSkrauch committed 2016-04-15 02:01:01 +03:00
1 parent 085869f2bc
commit a69cd2da2c
2 files changed
+18 -2

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ class ChangeUsernameForm extends PasswordProtectedForm {
$account = new Account();
$account->username = $this->$attribute;
if (!$account->validate(['username'])) {
$account->addErrors($account->getErrors('username'));
$this->addErrors($account->getErrors());
}
}