From 6276402b3fd12d7807aebf5b4bfc5f8019f983aa Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Mon, 11 Jul 2022 15:06:16 +0200 Subject: [PATCH] fix(form): unable to upload files from public_form --- front/formdisplay.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/formdisplay.php b/front/formdisplay.php index 422f9a34a..8a9cbbdfb 100644 --- a/front/formdisplay.php +++ b/front/formdisplay.php @@ -82,9 +82,9 @@ // If user was not authenticated, remove temporary user if (isset($_SESSION['formcreator_public'])) { - unset($_SESSION['glpiname']); unset($_SESSION['formcreator_public']); session_write_close(); + unset($_SESSION['glpiname']); } } else if (isset($_GET['answer_saved'])) { $message = __("The form has been successfully saved!");