Moved event to correct place (#430)
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
- Fix #384: Delete flash messages after consuming (cgsmith)
|
||||
- Enh: Added SK translations (snickom)
|
||||
- Fix: allow password_changed_at to be saved when reseting password (p4blojf)
|
||||
- Fix #430: Moved EVENT_BEFORE_PROFILE_UPDATE to correct place (eluhr)
|
||||
|
||||
## 1.5.1 April 5, 2020
|
||||
- Fix #370: Extending view fix (effsoft)
|
||||
|
||||
@ -189,8 +189,8 @@ class AdminController extends Controller
|
||||
$this->make(AjaxRequestModelValidator::class, [$profile])->validate();
|
||||
|
||||
if ($profile->load(Yii::$app->request->post())) {
|
||||
if ($profile->save()) {
|
||||
$this->trigger(UserEvent::EVENT_BEFORE_PROFILE_UPDATE, $event);
|
||||
if ($profile->save()) {
|
||||
Yii::$app->getSession()->setFlash('success', Yii::t('usuario', 'Profile details have been updated'));
|
||||
$this->trigger(UserEvent::EVENT_AFTER_PROFILE_UPDATE, $event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user