Compare commits

...

2 Commits

Author SHA1 Message Date
Prof Langues
f6c1e2a9f3 Form numéro de version 2021-02-04 16:55:29 +01:00
Prof Langues
3facabaeca Form 2.6 Caractères spéciaux mal affichés dans les noms des champs du formulaire lors de l'édition 2021-02-04 16:52:37 +01:00

View File

@ -32,7 +32,7 @@ class form extends common {
public static $pagination; public static $pagination;
const FORM_VERSION = '2.5'; const FORM_VERSION = '2.6';
// Objets // Objets
const TYPE_MAIL = 'mail'; const TYPE_MAIL = 'mail';
@ -94,7 +94,7 @@ class form extends common {
$inputs = []; $inputs = [];
foreach($this->getInput('formConfigPosition', null) as $index => $position) { foreach($this->getInput('formConfigPosition', null) as $index => $position) {
$inputs[] = [ $inputs[] = [
'name' => $this->getInput('formConfigName[' . $index . ']'), 'name' => htmlspecialchars_decode($this->getInput('formConfigName[' . $index . ']'),ENT_QUOTES),
'position' => helper::filter($position, helper::FILTER_INT), 'position' => helper::filter($position, helper::FILTER_INT),
'required' => $this->getInput('formConfigRequired[' . $index . ']', helper::FILTER_BOOLEAN), 'required' => $this->getInput('formConfigRequired[' . $index . ']', helper::FILTER_BOOLEAN),
'type' => $this->getInput('formConfigType[' . $index . ']'), 'type' => $this->getInput('formConfigType[' . $index . ']'),