Skip to content

Commit

Permalink
fix(form): redirect anon user to success page
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Feb 15, 2022
1 parent 1a5fe98 commit 56ad7b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front/form.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@
if ($_SESSION['glpiname'] == 'formcreator_temp_user') {
// Form was saved by an annymous user
unset($_SESSION['glpiname']);
Html::redirect('formdisplay.php?answer_saved&id=' . $form->getID());
// don't show notifications
unset($_SESSION['MESSAGE_AFTER_REDIRECT']);
Html::redirect('formdisplay.php?answer_saved');
}

// redirect to created item
Expand Down

0 comments on commit 56ad7b0

Please sign in to comment.