forked from ZwiiCMS-Team/ZwiiCMS
Libellé sélection single mail
This commit is contained in:
parent
08b8fec670
commit
0724d37d88
@ -60,7 +60,7 @@ class form extends common {
|
|||||||
ksort($userIdsFirstnames);
|
ksort($userIdsFirstnames);
|
||||||
self::$listUsers [] = '';
|
self::$listUsers [] = '';
|
||||||
foreach($userIdsFirstnames as $userId => $userFirstname) {
|
foreach($userIdsFirstnames as $userId => $userFirstname) {
|
||||||
self::$listUsers [] = $this->getData(['user', $userId, 'mail']);
|
self::$listUsers [] = $userId;
|
||||||
}
|
}
|
||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if($this->isPost()) {
|
if($this->isPost()) {
|
||||||
@ -74,7 +74,7 @@ class form extends common {
|
|||||||
'capcha' => $this->getInput('formConfigCapcha', helper::FILTER_BOOLEAN),
|
'capcha' => $this->getInput('formConfigCapcha', helper::FILTER_BOOLEAN),
|
||||||
'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', helper::FILTER_MAIL),
|
'mail' => $this->getInput('formConfigMail') ,
|
||||||
'pageId' => $this->getInput('formConfigPageId', helper::FILTER_ID),
|
'pageId' => $this->getInput('formConfigPageId', helper::FILTER_ID),
|
||||||
'subject' => $this->getInput('formConfigSubject')
|
'subject' => $this->getInput('formConfigSubject')
|
||||||
]
|
]
|
||||||
@ -307,9 +307,13 @@ class form extends common {
|
|||||||
// Crée les données
|
// Crée les données
|
||||||
$this->setData(['module', $this->getUrl(0), 'data', helper::increment(1, $this->getData(['module', $this->getUrl(0), 'data'])), $data]);
|
$this->setData(['module', $this->getUrl(0), 'data', helper::increment(1, $this->getData(['module', $this->getUrl(0), 'data'])), $data]);
|
||||||
// Envoi du mail
|
// Envoi du mail
|
||||||
|
// Rechercher l'adresse en fonction du mail
|
||||||
$sent = true;
|
$sent = true;
|
||||||
$singleuser = $this->getData(['module', $this->getUrl(0), 'config', 'user']);
|
$singleuser = $this->getData(['user',
|
||||||
|
$this->getData(['module', $this->getUrl(0), 'config', 'user']),
|
||||||
|
'mail']);
|
||||||
$singlemail = $this->getData(['module', $this->getUrl(0), 'config', 'mail']);
|
$singlemail = $this->getData(['module', $this->getUrl(0), 'config', 'mail']);
|
||||||
|
// Verification si le mail peut être envoyé
|
||||||
if(
|
if(
|
||||||
self::$inputNotices === []
|
self::$inputNotices === []
|
||||||
AND $group = $this->getData(['module', $this->getUrl(0), 'config', 'group'])
|
AND $group = $this->getData(['module', $this->getUrl(0), 'config', 'group'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user