* Fix #25416 :the email subject is not replaced when an email template is applied in tickets * Update html.formticket.class.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
49e63e1d38
commit
84243dc5e4
1 changed files with 13 additions and 3 deletions
|
|
@ -1477,10 +1477,20 @@ class FormTicket
|
|||
print '<input type="submit" class="button" value="'.$langs->trans('Apply').'" name="modelselected" id="modelselected">';
|
||||
print '</div></td>';
|
||||
}
|
||||
|
||||
// Subject
|
||||
// Subject/topic
|
||||
$topic = "";
|
||||
foreach( $formmail->lines_model as $line){
|
||||
if ($this->param['models_id'] == $line->id){
|
||||
$topic = $line->topic;
|
||||
break;
|
||||
}
|
||||
}
|
||||
print '<tr class="email_line"><td>'.$langs->trans('Subject').'</td>';
|
||||
print '<td><input type="text" class="text minwidth500" name="subject" value="['.getDolGlobalString('MAIN_INFO_SOCIETE_NOM').' - '.$langs->trans("Ticket").' '.$ticketstat->ref.'] '.$langs->trans('TicketNewMessage').'" />';
|
||||
if (empty($topic)) {
|
||||
print '<td><input type="text" class="text minwidth500" name="subject" value="['.getDolGlobalString('MAIN_INFO_SOCIETE_NOM').' - '.$langs->trans("Ticket").' '.$ticketstat->ref.'] '.$langs->trans('TicketNewMessage').'" />';
|
||||
} else {
|
||||
print '<td><input type="text" class="text minwidth500" name="subject" value="['.getDolGlobalString('MAIN_INFO_SOCIETE_NOM').' - '.$langs->trans("Ticket").' '.$ticketstat->ref.'] '.$topic.'" />';
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
// Recipients / adressed-to
|
||||
|
|
|
|||
Loading…
Reference in a new issue