From 665477c6fb6b576efba9ee0f47f9241a25fd6e3a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 7 Nov 2024 05:05:29 +0100 Subject: [PATCH] Rename substituion key __MEMBER_CIVILITY__ --- ChangeLog | 2 ++ htdocs/core/lib/functions.lib.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e205c90cda5..ed7cf76603c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,8 @@ The following changes may create regressions for some external modules, but were * The old function dol_bc($var, $moreclass = '') has been removed. If you called it, just stop to call it. * The trigger code CATEGORY_LINK and CATEGORY_UNLINK has been replaced with code CATEGORY_MODIFY. You can read ->context['linkto'] or ->context['unlinkoff' to detect we want to make a link or unlink. * The property ->domiciliation and ->propio on bank accounts has been deprecated and replaced with property ->address and ->owner_name +* If you were using the substitution key __MEMBER_CIVILITY__, you must now use __MEMBER_TITLE__ + ***** ChangeLog for 20.0.1 compared to 20.0.0 ***** diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index a3c7554557e..08d949fe9fd 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -9081,7 +9081,6 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null, $substitutionarray['__MEMBER_ID__'] = (isset($object->id) ? $object->id : ''); if (method_exists($object, 'getCivilityLabel')) { - $substitutionarray['__MEMBER_CIVILITY__'] = $object->getCivilityLabel(); // deprecated $substitutionarray['__MEMBER_TITLE__'] = $object->getCivilityLabel(); } $substitutionarray['__MEMBER_FIRSTNAME__'] = (isset($object->firstname) ? $object->firstname : '');