FIX Substitution for member subscription was not done
This commit is contained in:
parent
e2b0c4bc41
commit
611684a9a7
@ -6133,7 +6133,7 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
|
||||
$birthday = dol_print_date($object->birth, 'day');
|
||||
|
||||
if (is_object($object) && $object->element == 'adherent' && $object->id > 0)
|
||||
if (is_object($object) && ($object->element == 'adherent' || $object->element == 'member') && $object->id > 0)
|
||||
{
|
||||
$substitutionarray['__MEMBER_ID__'] = (isset($object->id) ? $object->id : '');
|
||||
if (method_exists($object, 'getCivilityLabel')) $substitutionarray['__MEMBER_CIVILITY__'] = $object->getCivilityLabel();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user