fix bug
This commit is contained in:
@ -50,6 +50,6 @@ In fact, we have used some of its processes, commands, views, and some of its at
|
|||||||
modules and make it easier for our developers to swap from [Dektrium's](https://dektrium.com) modules to our own.
|
modules and make it easier for our developers to swap from [Dektrium's](https://dektrium.com) modules to our own.
|
||||||
|
|
||||||
> [](http://www.2amigos.us)
|
> [](http://www.2amigos.us)
|
||||||
<i>Custom Software | Web & Mobile Software Development</i>
|
> <i>Custom Software | Web & Mobile Software Development</i>
|
||||||
[www.2amigos.us](http://www.2amigos.us)
|
> [www.2amigos.us](http://www.2amigos.us)
|
||||||
|
|
||||||
|
|||||||
@ -178,9 +178,9 @@ class AdminController extends Controller
|
|||||||
$profile->link('user', $user);
|
$profile->link('user', $user);
|
||||||
}
|
}
|
||||||
/** @var UserEvent $event */
|
/** @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->load(Yii::$app->request->post())) {
|
||||||
if ($profile->save()) {
|
if ($profile->save()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user