diff --git a/htdocs/admin/mails_templates.php b/htdocs/admin/mails_templates.php index 128a55a4889..3414f00b5d1 100644 --- a/htdocs/admin/mails_templates.php +++ b/htdocs/admin/mails_templates.php @@ -168,7 +168,7 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire) $elementL if ($conf->projet->enabled) $elementList['project'] = $langs->trans('MailToProject'); if ($conf->ticket->enabled && $user->rights->ticket->read) $elementList['ticket_send'] = $langs->trans('MailToTicket'); if ($conf->recruitment->enabled && $user->rights->recruitment->recruitmentjobposition->read) $elementList['recruitmentcandidature_send'] = $langs->trans('RecruitmentCandidatures'); -if ($conf->agenda->enabled) $elementList['event_push'] = $langs->trans('MailToSendEventPush'); +if ($conf->agenda->enabled) $elementList['actioncomm_send'] = $langs->trans('MailToSendEventPush'); $elementList['user'] = $langs->trans('MailToUser'); $parameters = array('elementList'=>$elementList); diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index 46c42bff6ad..7ecc12a621d 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -69,7 +69,7 @@ $addreminder = GETPOST('addreminder'); $offsetvalue = GETPOST('offsetvalue'); $offsetunit = GETPOST('offsetunittype_duration'); $remindertype = GETPOST('selectremindertype'); -$modelmail = GETPOST('agendasendmodel_mail'); +$modelmail = GETPOST('actioncommsendmodel_mail'); //var_dump($_POST); exit; @@ -1188,7 +1188,7 @@ if ($action == 'create') //Mail Model print ''.$langs->trans("EMailTemplates").''; - print $form->select_model_mail('agendasend', 'agenda_send'); + print $form->select_model_mail('actioncommsend', 'actioncomm_send'); print ''; @@ -1208,9 +1208,9 @@ if ($action == 'create') $("#selectremindertype").click(function(){ var selected_option = $("#selectremindertype option:selected").val(); if(selected_option == "email") { - $("#select_agendasendmodel_mail").closest("tr").show(); + $("#select_actioncommsendmodel_mail").closest("tr").show(); } else { - $("#select_agendasendmodel_mail").closest("tr").hide(); + $("#select_actioncommsendmodel_mail").closest("tr").hide(); }; }); })';