From 7fc1693735825e6ffaff232f7e78c4c71a6042cc Mon Sep 17 00:00:00 2001 From: Fred <23246457+fredtempez@users.noreply.github.com> Date: Mon, 7 Oct 2019 14:57:32 +0200 Subject: [PATCH] [9.2.09] Erreur d'initialisation dans form --- module/form/form.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/module/form/form.php b/module/form/form.php index 8713116d..81ed0c64 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -32,7 +32,7 @@ class form extends common { public static $pagination; - const FORM_VERSION = '1.9'; + const FORM_VERSION = '2.0'; const TYPE_MAIL = 'mail'; const TYPE_SELECT = 'select'; @@ -88,6 +88,8 @@ class form extends common { 'subject' => $this->getInput('formConfigSubject') ] ]); + // Génération des données vides + $this->setData(['module', $this->getUrl(0), 'data', []]); // Génération des champs $inputs = []; foreach($this->getInput('formConfigPosition', null) as $index => $position) { @@ -379,4 +381,4 @@ class form extends common { 'view' => 'index', ]); } -} \ No newline at end of file +}