From 08f45f20dfebf207c5fcac96d2c80054e279b8d4 Mon Sep 17 00:00:00 2001 From: Hystepik Date: Thu, 4 Apr 2024 13:58:05 +0200 Subject: [PATCH] Fix #29099 add thirdparty name to title --- htdocs/ticket/list.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/htdocs/ticket/list.php b/htdocs/ticket/list.php index cc385982c9d..f48dc44639c 100644 --- a/htdocs/ticket/list.php +++ b/htdocs/ticket/list.php @@ -342,7 +342,17 @@ $user_temp = new User($db); $socstatic = new Societe($db); $help_url = ''; -$title = $langs->trans('Tickets'); + +$moretitle = ''; +if ($socid > 0) { + $socstatic->fetch($socid); + $moretitle = $langs->trans("ThirdParty") . ' - '; + if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/thirdpartynameonly/', $conf->global->MAIN_HTML_TITLE) && $socstatic->name) { + $moretitle = $socstatic->name . ' - '; + } +} + +$title = $moretitle . $langs->trans('Tickets'); $morejs = array(); $morecss = array();