Fix Title company customer card

This commit is contained in:
Alexandre SPANGARO 2021-05-09 22:06:05 +02:00
parent 7bd5306ae5
commit 6e9597cd90

View File

@ -298,9 +298,9 @@ $userstatic = new User($db);
$form = new Form($db);
$formcompany = new FormCompany($db);
$title = $langs->trans("CustomerCard");
$title = $langs->trans("ThirdParty")." - ".$langs->trans('Customer');
if (!empty($conf->global->MAIN_HTML_TITLE) && preg_match('/thirdpartynameonly/', $conf->global->MAIN_HTML_TITLE) && $object->name) {
$title = $object->name;
$title = $object->name." - ".$langs->trans('Customer');
}
$help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas|DE:Modul_Geschäftspartner';