From 7ac8f6c3a4da83e7c59db99a32416b6872e0b932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=AFeul=20Rouquette?= <maieul@maieul.net> Date: Sun, 28 Mar 2021 16:23:25 +0200 Subject: [PATCH] =?UTF-8?q?si=20on=20reaffiche=20le=20formulaire=20apr?= =?UTF-8?q?=C3=A8s=20validation,=20le=20faire=20=C3=A0=20l'=C3=A9tape=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- formulaires/formidable.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/formulaires/formidable.php b/formulaires/formidable.php index 2f575266..4158063c 100644 --- a/formulaires/formidable.php +++ b/formulaires/formidable.php @@ -307,7 +307,10 @@ function formulaires_formidable_verifier_traitements($id, $valeurs = array(), $i } } } - + // Si jamais on raffiche le formulaire, le reafficher à l'étape 0 + if ($formulaire['apres'] == 'formulaire') { + set_request('_etape', '1'); + } return $erreurs; } -- GitLab