mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix #29099 add thirdparty name to title
This commit is contained in:
parent
404ba88107
commit
08f45f20df
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user