Skip to content

Commit 5ffa1b9

Browse files
committed
fix(form): redirect anon user to success page
1 parent dfa1371 commit 5ffa1b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

front/form.form.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@
145145
if ($_SESSION['glpiname'] == 'formcreator_temp_user') {
146146
// Form was saved by an annymous user
147147
unset($_SESSION['glpiname']);
148-
Html::redirect('formdisplay.php?answer_saved&id=' . $form->getID());
148+
// don't show notifications
149+
unset($_SESSION['MESSAGE_AFTER_REDIRECT']);
150+
Html::redirect('formdisplay.php?answer_saved');
149151
}
150152

151153
// redirect to created item

0 commit comments

Comments
 (0)