diff --git a/htdocs/core/class/html.formticket.class.php b/htdocs/core/class/html.formticket.class.php
index 4f3ae4bc5e6..0baa4dd5f8a 100644
--- a/htdocs/core/class/html.formticket.class.php
+++ b/htdocs/core/class/html.formticket.class.php
@@ -1423,7 +1423,7 @@ class FormTicket
$res = $ticketstat->fetch('', '', $this->track_id);
print '
| ';
- $checkbox_selected = (GETPOST('send_email') == "1" ? ' checked' : ($conf->global->TICKETS_MESSAGE_FORCE_MAIL?'checked':''));
+ $checkbox_selected = (GETPOST('send_email') == "1" ? ' checked' : (getDolGlobalInt('TICKETS_MESSAGE_FORCE_MAIL')?'checked':''));
print ' ';
print '';
$texttooltip = $langs->trans("TicketMessageSendEmailHelp", '{s1}');
@@ -1455,7 +1455,7 @@ class FormTicket
// Subject
print ' |
| '.$langs->trans('Subject').' | ';
- print 'ref.'] '.$langs->trans('TicketNewMessage').'" />';
+ print ' | ref.'] '.$langs->trans('TicketNewMessage').'" />';
print ' |
';
// Recipients / adressed-to
@@ -1489,8 +1489,8 @@ class FormTicket
}
}
- if ($conf->global->TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS) {
- $sendto[] = $conf->global->TICKET_NOTIFICATION_EMAIL_TO.' (generic email)';
+ if (getDolGlobalInt('TICKET_NOTIFICATION_ALSO_MAIN_ADDRESS')) {
+ $sendto[] = getDolGlobalString('TICKET_NOTIFICATION_EMAIL_TO').' (generic email)';
}
// Print recipient list
diff --git a/htdocs/ticket/agenda.php b/htdocs/ticket/agenda.php
index a78a610ed1c..ce872c7ac38 100644
--- a/htdocs/ticket/agenda.php
+++ b/htdocs/ticket/agenda.php
@@ -46,6 +46,9 @@ $track_id = GETPOST('track_id', 'alpha', 3);
$socid = GETPOST('socid', 'int');
$action = GETPOST('action', 'aZ09');
+// Store current page url
+$url_page_current = DOL_URL_ROOT.'/ticket/agenda.php';
+
$limit = GETPOST('limit', 'int') ? GETPOST('limit', 'int') : $conf->liste_limit;
$sortfield = GETPOST('sortfield', 'aZ09comma');
$sortorder = GETPOST('sortorder', 'aZ09comma');
diff --git a/htdocs/ticket/contact.php b/htdocs/ticket/contact.php
index b5453ed638b..38d00de71fa 100644
--- a/htdocs/ticket/contact.php
+++ b/htdocs/ticket/contact.php
@@ -252,7 +252,7 @@ if ($id > 0 || !empty($track_id) || !empty($ref)) {
$linkback = ''.$langs->trans("BackToList").' ';
- dol_banner_tab($object, 'ref', $linkback, ($user->socid ? 0 : 1), 'ref', 'ref', $morehtmlref, $param, 0, '', '', 1, '');
+ dol_banner_tab($object, 'ref', $linkback, (!empty($user->socid) ? 0 : 1), 'ref', 'ref', $morehtmlref, '', 0, '', '', 1, '');
print dol_get_fiche_end();
diff --git a/htdocs/ticket/document.php b/htdocs/ticket/document.php
index 1c7a25323e2..9c2208e9864 100644
--- a/htdocs/ticket/document.php
+++ b/htdocs/ticket/document.php
@@ -49,6 +49,9 @@ $track_id = GETPOST('track_id', 'alpha');
$action = GETPOST('action', 'alpha');
$confirm = GETPOST('confirm', 'alpha');
+// Store current page url
+$url_page_current = DOL_URL_ROOT.'/ticket/document.php';
+
// Get parameters
$limit = GETPOST('limit', 'int') ? GETPOST('limit', 'int') : $conf->liste_limit;
$sortfield = GETPOST('sortfield', 'aZ09comma');
diff --git a/htdocs/ticket/messaging.php b/htdocs/ticket/messaging.php
index 1ad01a7ae67..b42cff070f2 100644
--- a/htdocs/ticket/messaging.php
+++ b/htdocs/ticket/messaging.php
@@ -46,6 +46,9 @@ $track_id = GETPOST('track_id', 'alpha', 3);
$socid = GETPOST('socid', 'int');
$action = GETPOST('action', 'aZ09');
+// Store current page url
+$url_page_current = DOL_URL_ROOT.'/ticket/messaging.php';
+
$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
$sortfield = GETPOST("sortfield", "aZ09comma");
$sortorder = GETPOST("sortorder", 'aZ09comma');