Replace "agenda_send" and "event_push" to "actioncomm_send"

This commit is contained in:
atm-lena 2020-08-27 11:15:08 +02:00
parent 69459e3429
commit 5856033892
2 changed files with 5 additions and 5 deletions

View File

@ -168,7 +168,7 @@ if ($conf->contrat->enabled && $user->rights->contrat->lire) $elementL
if ($conf->projet->enabled) $elementList['project'] = $langs->trans('MailToProject'); 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->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->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'); $elementList['user'] = $langs->trans('MailToUser');
$parameters = array('elementList'=>$elementList); $parameters = array('elementList'=>$elementList);

View File

@ -69,7 +69,7 @@ $addreminder = GETPOST('addreminder');
$offsetvalue = GETPOST('offsetvalue'); $offsetvalue = GETPOST('offsetvalue');
$offsetunit = GETPOST('offsetunittype_duration'); $offsetunit = GETPOST('offsetunittype_duration');
$remindertype = GETPOST('selectremindertype'); $remindertype = GETPOST('selectremindertype');
$modelmail = GETPOST('agendasendmodel_mail'); $modelmail = GETPOST('actioncommsendmodel_mail');
//var_dump($_POST); exit; //var_dump($_POST); exit;
@ -1188,7 +1188,7 @@ if ($action == 'create')
//Mail Model //Mail Model
print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("EMailTemplates").'</td><td colspan="3">'; print '<tr><td class="titlefieldcreate nowrap">'.$langs->trans("EMailTemplates").'</td><td colspan="3">';
print $form->select_model_mail('agendasend', 'agenda_send'); print $form->select_model_mail('actioncommsend', 'actioncomm_send');
print '</td></tr>'; print '</td></tr>';
@ -1208,9 +1208,9 @@ if ($action == 'create')
$("#selectremindertype").click(function(){ $("#selectremindertype").click(function(){
var selected_option = $("#selectremindertype option:selected").val(); var selected_option = $("#selectremindertype option:selected").val();
if(selected_option == "email") { if(selected_option == "email") {
$("#select_agendasendmodel_mail").closest("tr").show(); $("#select_actioncommsendmodel_mail").closest("tr").show();
} else { } else {
$("#select_agendasendmodel_mail").closest("tr").hide(); $("#select_actioncommsendmodel_mail").closest("tr").hide();
}; };
}); });
})'; })';