[9.2.09] Erreur d'initialisation dans form

This commit is contained in:
Fred 2019-10-07 14:57:32 +02:00 committed by GitHub
parent 417deac31b
commit 7fc1693735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',
]);
}
}
}