Commit b17d372e authored by Aaron Wells's avatar Aaron Wells Committed by Gerrit Code Review

Merge "Fix page error on form cancel after validation fails (Bug #1400511)"

parents f064d60e 55f3b731
......@@ -1301,8 +1301,8 @@ function add_feedback_form_submit(Pieform $form, $values) {
function add_feedback_form_cancel_submit(Pieform $form) {
global $view;
$form->reply(PIEFORM_OK, array(
'goto' => '/' . $view->get_url(false),
$form->reply(PIEFORM_CANCEL, array(
'location' => $view->get_url(true),
));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment