mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
This commit is contained in:
commit
a127dd2d15
|
|
@ -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 New Issue
Block a user