bug module form v2.5

This commit is contained in:
fredtempez 2020-12-01 21:05:22 +01:00
parent 1a881e2023
commit a5fd6a99e0

View File

@ -32,7 +32,7 @@ class form extends common {
public static $pagination; public static $pagination;
const FORM_VERSION = '2.4'; const FORM_VERSION = '2.5';
// Objets // Objets
const TYPE_MAIL = 'mail'; const TYPE_MAIL = 'mail';
@ -87,7 +87,9 @@ class form extends common {
] ]
]); ]);
// Génération des données vides // Génération des données vides
if ($this->getData(['module', $this->getUrl(0), 'data']) === null) {
$this->setData(['module', $this->getUrl(0), 'data', []]); $this->setData(['module', $this->getUrl(0), 'data', []]);
}
// Génération des champs // Génération des champs
$inputs = []; $inputs = [];
foreach($this->getInput('formConfigPosition', null) as $index => $position) { foreach($this->getInput('formConfigPosition', null) as $index => $position) {