diff --git a/htdocs/core/class/html.formticket.class.php b/htdocs/core/class/html.formticket.class.php
index d99a6c091cc..ecf137adb04 100644
--- a/htdocs/core/class/html.formticket.class.php
+++ b/htdocs/core/class/html.formticket.class.php
@@ -919,7 +919,7 @@ class FormTicket
print '
| '.$langs->trans('Subject').' | ';
$label_title = empty($conf->global->MAIN_APPLICATION_TITLE) ? $mysoc->name : $conf->global->MAIN_APPLICATION_TITLE;
- print '';
+ print ' | ref.'] '.$langs->trans('TicketNewMessage').'" />';
print ' |
';
// Destinataires
@@ -935,13 +935,13 @@ class FormTicket
if (is_array($contacts) && count($contacts) > 0) {
foreach ($contacts as $key => $info_sendto) {
if ($info_sendto['email'] != '') {
- $sendto[] = dol_escape_htmltag(trim($info_sendto['firstname']." ".$info_sendto['lastname'])." <".$info_sendto['email'].">")." (".dol_escape_htmltag($info_sendto['libelle']).")";
+ $sendto[] = dol_escape_htmltag(trim($info_sendto['firstname']." ".$info_sendto['lastname'])." <".$info_sendto['email'].">").' ('.dol_escape_htmltag($info_sendto['libelle']).")";
}
}
}
if ($ticketstat->origin_email && !in_array($this->dao->origin_email, $sendto)) {
- $sendto[] = dol_escape_htmltag($ticketstat->origin_email)." (".$langs->trans("TicketEmailOriginIssuer").")";
+ $sendto[] = dol_escape_htmltag($ticketstat->origin_email).' ('.$langs->trans("TicketEmailOriginIssuer").")";
}
if ($ticketstat->fk_soc > 0) {
@@ -949,12 +949,12 @@ class FormTicket
$ticketstat->fetch_thirdparty();
if (is_array($ticketstat->thirdparty->email) && !in_array($ticketstat->thirdparty->email, $sendto)) {
- $sendto[] = $ticketstat->thirdparty->email.' ('.$langs->trans('Customer').')';
+ $sendto[] = $ticketstat->thirdparty->email.' ('.$langs->trans('Customer').')';
}
}
if ($conf->global->TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS) {
- $sendto[] = $conf->global->TICKET_NOTIFICATION_EMAIL_TO.' (generic email)';
+ $sendto[] = $conf->global->TICKET_NOTIFICATION_EMAIL_TO.' (generic email)';
}
// Print recipient list
diff --git a/htdocs/ticket/card.php b/htdocs/ticket/card.php
index 940710ff55c..b64c20ed9e2 100644
--- a/htdocs/ticket/card.php
+++ b/htdocs/ticket/card.php
@@ -854,15 +854,15 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd
// Creation date
print '| '.$langs->trans("DateCreation").' | ';
print dol_print_date($object->datec, 'dayhour');
- print ' - '.$langs->trans("TimeElapsedSince").': '.''.convertSecondToTime(roundUpToNextMultiple($now - $object->datec, 60)).'';
+ print ' - '.$langs->trans("TimeElapsedSince").': '.''.convertSecondToTime(roundUpToNextMultiple($now - $object->datec, 60)).'';
print ' |
';
// Read date
print '| '.$langs->trans("TicketReadOn").' | ';
if (!empty($object->date_read)) {
print dol_print_date($object->date_read, 'dayhour');
- print ' - '.$langs->trans("TicketTimeToRead").': '.convertSecondToTime(roundUpToNextMultiple($object->date_read - $object->datec, 60)).'';
- print ' - '.$langs->trans("TimeElapsedSince").': '.''.convertSecondToTime(roundUpToNextMultiple($now - $object->date_read, 60)).'';
+ print ' - '.$langs->trans("TicketTimeToRead").': '.convertSecondToTime(roundUpToNextMultiple($object->date_read - $object->datec, 60)).'';
+ print ' - '.$langs->trans("TimeElapsedSince").': '.''.convertSecondToTime(roundUpToNextMultiple($now - $object->date_read, 60)).'';
}
print ' |
';
@@ -1034,7 +1034,7 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd
// Display navbar with links to change ticket status
print '';
- if (!$user->socid && $user->rights->ticket->write && $object->fk_status < 8 && GETPOST('set') !== 'properties') {
+ if (!$user->socid && $user->rights->ticket->write && $object->fk_statut < 8 && GETPOST('set') !== 'properties') {
$actionobject->viewStatusActions($object);
}
@@ -1289,6 +1289,7 @@ if (empty($action) || $action == 'view' || $action == 'addlink' || $action == 'd
$formticket->action = $action;
$formticket->track_id = $object->track_id;
+ $formticket->ref = $object->ref;
$formticket->id = $object->id;
$formticket->withfile = 2;