mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Метод save на модели Accounts теперь вызывается без аргумента false, т.к. из модели были удалены валидаторы
This commit is contained in:
@@ -31,7 +31,7 @@ class ChangeLanguageForm extends ApiForm {
|
||||
|
||||
$account = $this->getAccount();
|
||||
$account->lang = $this->lang;
|
||||
if (!$account->save(false)) {
|
||||
if (!$account->save()) {
|
||||
throw new ErrorException('Cannot change user language');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user