Rename substituion key __MEMBER_CIVILITY__

This commit is contained in:
Laurent Destailleur
2024-11-07 05:05:29 +01:00
parent 507d400a56
commit 665477c6fb
2 changed files with 2 additions and 1 deletions

View File

@@ -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 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 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 * 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 ***** ***** ChangeLog for 20.0.1 compared to 20.0.0 *****

View File

@@ -9081,7 +9081,6 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
$substitutionarray['__MEMBER_ID__'] = (isset($object->id) ? $object->id : ''); $substitutionarray['__MEMBER_ID__'] = (isset($object->id) ? $object->id : '');
if (method_exists($object, 'getCivilityLabel')) { if (method_exists($object, 'getCivilityLabel')) {
$substitutionarray['__MEMBER_CIVILITY__'] = $object->getCivilityLabel(); // deprecated
$substitutionarray['__MEMBER_TITLE__'] = $object->getCivilityLabel(); $substitutionarray['__MEMBER_TITLE__'] = $object->getCivilityLabel();
} }
$substitutionarray['__MEMBER_FIRSTNAME__'] = (isset($object->firstname) ? $object->firstname : ''); $substitutionarray['__MEMBER_FIRSTNAME__'] = (isset($object->firstname) ? $object->firstname : '');