This commit is contained in:
Antonio Ramirez
2017-07-25 18:18:57 +02:00
2 changed files with 5 additions and 5 deletions

View File

@ -178,9 +178,9 @@ class AdminController extends Controller
$profile->link('user', $user);
}
/** @var UserEvent $event */
$event = $this->make(UserEvent::class, [$profile]);
$event = $this->make(UserEvent::class, [$user]);
$this->make(AjaxRequestModelValidator::class, [$user])->validate();
$this->make(AjaxRequestModelValidator::class, [$profile])->validate();
if ($profile->load(Yii::$app->request->post())) {
if ($profile->save()) {