Skip to content

Commit

Permalink
FIX: contact/address title is always "New Contact/Address" even if th…
Browse files Browse the repository at this point in the history
…e contact/address already exists (#29581)
  • Loading branch information
atm-florianm committed May 3, 2024
1 parent 36873b9 commit 8474360
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/contact/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Check failure on line 589 in htdocs/contact/card.php

View workflow job for this annotation

GitHub Actions / pre-commit

Tabs must be used to indent lines; spaces are not allowed
}

llxHeader('', $title, $help_url);

Expand Down

0 comments on commit 8474360

Please sign in to comment.