FIX : Tickets mail models doesn't work

This commit is contained in:
gauthier 2020-06-02 17:06:49 +02:00
parent bc1724a3aa
commit 68bb552dcc
3 changed files with 4 additions and 4 deletions

View File

@ -166,6 +166,7 @@ if ($conf->societe->enabled) $elementList['thirdparty']=$langs->trans(
if ($conf->adherent->enabled) $elementList['member']=$langs->trans('MailToMember');
if ($conf->contrat->enabled) $elementList['contract']=$langs->trans('MailToSendContract');
if ($conf->projet->enabled) $elementList['project']=$langs->trans('MailToProject');
if ($conf->ticket->enabled) $elementList['ticket_send']=$langs->trans('MailToTicket');
$elementList['user']=$langs->trans('MailToUser');
$parameters=array('elementList'=>$elementList);

View File

@ -991,9 +991,7 @@ class FormTicket
// MESSAGE
$defaultmessage="";
if (is_array($arraydefaultmessage) && count($arraydefaultmessage) > 0 && $arraydefaultmessage->content) {
$defaultmessage=$arraydefaultmessage->content;
}
if ($arraydefaultmessage && $arraydefaultmessage->content) $defaultmessage = $arraydefaultmessage->content;
$defaultmessage=str_replace('\n', "\n", $defaultmessage);
// Deal with format differences between message and signature (text / HTML)

View File

@ -1792,6 +1792,7 @@ MailToThirdparty=Third parties
MailToMember=Members
MailToUser=Users
MailToProject=Projects page
MailToTicket=Tickets
ByDefaultInList=Show by default on list view
YouUseLastStableVersion=You use the latest stable version
TitleExampleForMajorRelease=Example of message you can use to announce this major release (feel free to use it on your web sites)
@ -1923,4 +1924,4 @@ DeleteEmailCollector=Delete email collector
ConfirmDeleteEmailCollector=Are you sure you want to delete this email collector?
RecipientEmailsWillBeReplacedWithThisValue=Recipient emails will be always replaced with this value
AtLeastOneDefaultBankAccountMandatory=At least 1 default bank account must be defined
FeatureNotAvailableWithReceptionModule=Feature not available when module Reception is enabled
FeatureNotAvailableWithReceptionModule=Feature not available when module Reception is enabled