From 8474360271d90acd3d225cea800ce8f3270f1a95 Mon Sep 17 00:00:00 2001 From: Florian Mortgat <50440633+atm-florianm@users.noreply.github.com> Date: Fri, 3 May 2024 13:10:36 +0200 Subject: [PATCH] FIX: contact/address title is always "New Contact/Address" even if the contact/address already exists (#29581) --- htdocs/contact/card.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/contact/card.php b/htdocs/contact/card.php index 29359e584fc20..3b56106319bd3 100644 --- a/htdocs/contact/card.php +++ b/htdocs/contact/card.php @@ -585,7 +585,9 @@ $title = $object->lastname; } $help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas'; -$title = (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("NewContact") : $langs->trans("NewContactAddress")); +if (empty($object->id)) { + $title = (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("NewContact") : $langs->trans("NewContactAddress")); +} llxHeader('', $title, $help_url);