Use the current context when making redirects in FormController onSave handlers (#5132)

Related: d0546599d1
This commit is contained in:
Giuseppe Montuoro 2020-06-21 00:04:57 +02:00 committed by GitHub
parent ef36399cf7
commit cbbc82ac86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ class FormController extends ControllerBehavior
Flash::success($this->getLang("{$this->context}[flashSave]", 'backend::lang.form.create_success'));
if ($redirect = $this->makeRedirect('create', $model)) {
if ($redirect = $this->makeRedirect($this->context, $model)) {
return $redirect;
}
}
@ -326,7 +326,7 @@ class FormController extends ControllerBehavior
Flash::success($this->getLang("{$this->context}[flashSave]", 'backend::lang.form.update_success'));
if ($redirect = $this->makeRedirect('update', $model)) {
if ($redirect = $this->makeRedirect($this->context, $model)) {
return $redirect;
}
}