feat(notif mail): only send when first created
This commit is contained in:
parent
6b31909bb1
commit
96d1449c79
1 changed files with 28 additions and 24 deletions
|
@ -25,6 +25,9 @@ class NotifMailField extends BazarField
|
|||
}
|
||||
public function formatValuesBeforeSave($entry)
|
||||
{
|
||||
if ($GLOBALS['wiki']->getPageTag() == $entry['id_fiche']) {
|
||||
// modification : on ne fait pas de mail
|
||||
} else {
|
||||
$session = '';
|
||||
$session_employeur = false;
|
||||
if (!empty($entry['listefiche2inscription'])) {
|
||||
|
@ -64,6 +67,7 @@ SCOP Wision
|
|||
send_mail('noreply@yeswiki.pro', 'Adultes Relais', $entry['bf_contact_administratif_tel_mail'], '[Adultes Relais] Confirmation de l\'inscription de ' . $entry['bf_prenom'] . ' ' . $entry['bf_nom'] . ' à ' . $s['bf_titre'], $message, $message_html);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected function renderStatic($entry)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue