Merge pull request #17553 from aspangaro/14b3

Fix Title company card
This commit is contained in:
Laurent Destailleur 2021-05-11 18:19:58 +02:00 committed by GitHub
commit 5943f17b94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 3 deletions

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';

View File

@ -144,7 +144,7 @@ if ($socid > 0 && empty($object->id)) {
$title = $langs->trans("ThirdParty");
if (!empty($conf->global->MAIN_HTML_TITLE) && preg_match('/thirdpartynameonly/', $conf->global->MAIN_HTML_TITLE) && $object->name) {
$title = $object->name." - ".$langs->trans('Card');
$title = $object->name." - ".$langs->trans('ContactsAddresses');
}
$help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
llxHeader('', $title, $help_url);

View File

@ -677,6 +677,11 @@ $form = new Form($db);
$formother = new FormOther($db);
$formfile = new FormFile($db);
$title = $langs->trans("ThirdParty");
if (!empty($conf->global->MAIN_HTML_TITLE) && preg_match('/thirdpartynameonly/', $conf->global->MAIN_HTML_TITLE) && $object->name) {
$title = $object->name." - ".$langs->trans('PaymentInformation');
}
llxHeader();
$head = societe_prepare_head($object);