fix bug
This commit is contained in:
@ -49,7 +49,7 @@ This module is highly inspired by the excellent work of [Dektrium](https://dektr
|
||||
In fact, we have used some of its processes, commands, views, and some of its attribute names to somehow standardize the
|
||||
modules and make it easier for our developers to swap from [Dektrium's](https://dektrium.com) modules to our own.
|
||||
|
||||
> [](http://www.2amigos.us)
|
||||
<i>Custom Software | Web & Mobile Software Development</i>
|
||||
[www.2amigos.us](http://www.2amigos.us)
|
||||
> [](http://www.2amigos.us)
|
||||
> <i>Custom Software | Web & Mobile Software Development</i>
|
||||
> [www.2amigos.us](http://www.2amigos.us)
|
||||
|
||||
|
||||
@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user