From a5fd6a99e0c5196973cea9185c72931bd2612e1c Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 1 Dec 2020 21:05:22 +0100 Subject: [PATCH] bug module form v2.5 --- 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 6c11b2df..955f40f0 100755 --- a/module/form/form.php +++ b/module/form/form.php @@ -32,7 +32,7 @@ class form extends common { public static $pagination; - const FORM_VERSION = '2.4'; + const FORM_VERSION = '2.5'; // Objets const TYPE_MAIL = 'mail'; @@ -87,7 +87,9 @@ class form extends common { ] ]); // Génération des données vides - $this->setData(['module', $this->getUrl(0), 'data', []]); + if ($this->getData(['module', $this->getUrl(0), 'data']) === null) { + $this->setData(['module', $this->getUrl(0), 'data', []]); + } // Génération des champs $inputs = []; foreach($this->getInput('formConfigPosition', null) as $index => $position) {