Add substitution for mail intro and signature on ticket mail

This commit is contained in:
mrozniecki
2024-03-18 16:10:39 +01:00
parent 5e51092efd
commit fcff03c66d
2 changed files with 7 additions and 2 deletions

View File

@@ -1661,10 +1661,14 @@ class FormTicket
$texttooltip .= '<br><br>'.$langs->trans("ForEmailMessageWillBeCompletedWith").'...';
}
if (getDolGlobalString('TICKET_MESSAGE_MAIL_INTRO')) {
$texttooltip .= '<br><u>'.$langs->trans("TicketMessageMailIntro").'</u><br>'.getDolGlobalString('TICKET_MESSAGE_MAIL_INTRO');
$mail_intro = make_substitutions(getDolGlobalString('TICKET_MESSAGE_MAIL_INTRO'), $this->substit);
print '<input type="hidden" name="mail_intro" value="'.$mail_intro.'">';
$texttooltip .= '<br><u>'.$langs->trans("TicketMessageMailIntro").'</u><br>'.$mail_intro;
}
if (getDolGlobalString('TICKET_MESSAGE_MAIL_SIGNATURE')) {
$texttooltip .= '<br><br><u>'.$langs->trans("TicketMessageMailFooter").'</u><br>'.getDolGlobalString('TICKET_MESSAGE_MAIL_SIGNATURE');
$mail_signature = make_substitutions(getDolGlobalString('TICKET_MESSAGE_MAIL_SIGNATURE'), $this->substit);
print '<input type="hidden" name="mail_signature" value="'.$mail_signature.'">';
$texttooltip .= '<br><br><u>'.$langs->trans("TicketMessageMailFooter").'</u><br>'.$mail_signature;
}
print $form->textwithpicto('', $texttooltip, 1, 'help');
}