Merge pull request #14581 from OPEN-DSI/new-ticket-add-subject-company-name

NEW subject title with company name instead of application title in t…
This commit is contained in:
Laurent Destailleur 2020-08-28 17:36:38 +02:00 committed by GitHub
commit 9950f2ea83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -919,8 +919,7 @@ class FormTicket
// Subject
print '<tr class="email_line"><td class="titlefieldcreate">'.$langs->trans('Subject').'</td>';
$label_title = empty($conf->global->MAIN_APPLICATION_TITLE) ? $mysoc->name : $conf->global->MAIN_APPLICATION_TITLE;
print '<td><input type="text" class="text" size="80" name="subject" value="['.$label_title.' - '.$langs->trans("Ticket").' #'.$this->ref.'] '.$langs->trans('TicketNewMessage').'" />';
print '<td><input type="text" class="text" size="80" name="subject" value="[' . $conf->global->MAIN_INFO_SOCIETE_NOM . ' - ' . $langs->trans("Ticket") . ' ' . $this->ref . '] '.$langs->trans('TicketNewMessage').'" />';
print '</td></tr>';
// Destinataires