forked from ZwiiCMS-Team/ZwiiCMS
optimisation d'écriture
This commit is contained in:
parent
8b4775967d
commit
c933abefc2
@ -71,12 +71,6 @@ class form extends common {
|
|||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if($this->isPost()) {
|
if($this->isPost()) {
|
||||||
// Configuration
|
// Configuration
|
||||||
// Option sélectionnée sans page choisie
|
|
||||||
$pageId = '';
|
|
||||||
if ($this->getInput('formConfigPageId') !== "") {
|
|
||||||
// Option désactivée, réinitialiser l'id de la page sélectionnée.
|
|
||||||
$pageId = $this->getInput('formConfigPageIdToggle', helper::FILTER_BOOLEAN) === true ? $this->getInput('formConfigPageId', helper::FILTER_ID) : '';
|
|
||||||
}
|
|
||||||
$this->setData([
|
$this->setData([
|
||||||
'module',
|
'module',
|
||||||
$this->getUrl(0),
|
$this->getUrl(0),
|
||||||
@ -87,7 +81,7 @@ class form extends common {
|
|||||||
'group' => $this->getInput('formConfigGroup', helper::FILTER_INT),
|
'group' => $this->getInput('formConfigGroup', helper::FILTER_INT),
|
||||||
'user' => self::$listUsers [$this->getInput('formConfigUser', helper::FILTER_INT)],
|
'user' => self::$listUsers [$this->getInput('formConfigUser', helper::FILTER_INT)],
|
||||||
'mail' => $this->getInput('formConfigMail') ,
|
'mail' => $this->getInput('formConfigMail') ,
|
||||||
'pageId' => $pageId,
|
'pageId' => $this->getInput('formConfigPageIdToggle', helper::FILTER_BOOLEAN) === true ? $this->getInput('formConfigPageId', helper::FILTER_ID) : '',
|
||||||
'subject' => $this->getInput('formConfigSubject'),
|
'subject' => $this->getInput('formConfigSubject'),
|
||||||
'replyto' => $this->getInput('formConfigMailReplyTo', helper::FILTER_BOOLEAN)
|
'replyto' => $this->getInput('formConfigMailReplyTo', helper::FILTER_BOOLEAN)
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user