diff --git a/front/reservationitem.php b/front/reservationitem.php index 57cee953f..8c99d61a8 100644 --- a/front/reservationitem.php +++ b/front/reservationitem.php @@ -44,6 +44,11 @@ $res = new ReservationItem(); $res->display($_GET); +if (isset($_GET['reset'])) { + unset($_SESSION['plugin_formcreator']['redirected']); +} +$_POST = $_SESSION['plugin_formcreator']['redirected']['POST'] ?? []; +unset($_SESSION['plugin_formcreator']['redirected']); if (isset($_POST['submit'])) { $_SESSION['glpi_saved']['ReservationItem'] = $_POST; } else { diff --git a/inc/wizard.class.php b/inc/wizard.class.php index 040afc679..fa866ba05 100644 --- a/inc/wizard.class.php +++ b/inc/wizard.class.php @@ -110,7 +110,7 @@ public static function header($title) { if (Session::haveRight("reservation", ReservationItem::RESERVEANITEM)) { echo '