mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Fixes #590, parse in all model attribute values when making a redirect
This commit is contained in:
parent
f6189053b2
commit
77bc72e0e1
@ -314,7 +314,7 @@ class FormController extends ControllerBehavior
|
||||
$redirectUrl = Backend::url($this->getRedirectUrl($context));
|
||||
|
||||
if ($model && $redirectUrl)
|
||||
$redirectUrl = RouterHelper::parseValues($model, [$model->getKeyName()], $redirectUrl);
|
||||
$redirectUrl = RouterHelper::parseValues($model, array_keys($model->getAttributes()), $redirectUrl);
|
||||
|
||||
return ($redirectUrl) ? Redirect::to($redirectUrl) : null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user