forked from Wavyzz/dolibarr
Fix: add member ID in substitution method
This commit is contained in:
@@ -184,6 +184,7 @@ class Adherent extends CommonObject
|
|||||||
|
|
||||||
$infos='';
|
$infos='';
|
||||||
if ($this->civilite_id) $infos.= $langs->transnoentities("UserTitle").": ".$this->getCivilityLabel(1)."\n";
|
if ($this->civilite_id) $infos.= $langs->transnoentities("UserTitle").": ".$this->getCivilityLabel(1)."\n";
|
||||||
|
$infos.= $langs->transnoentities("id").": ".$this->id."\n";
|
||||||
$infos.= $langs->transnoentities("Lastname").": ".$this->nom."\n";
|
$infos.= $langs->transnoentities("Lastname").": ".$this->nom."\n";
|
||||||
$infos.= $langs->transnoentities("Firstname").": ".$this->prenom."\n";
|
$infos.= $langs->transnoentities("Firstname").": ".$this->prenom."\n";
|
||||||
$infos.= $langs->transnoentities("Company").": ".$this->societe."\n";
|
$infos.= $langs->transnoentities("Company").": ".$this->societe."\n";
|
||||||
@@ -201,6 +202,7 @@ class Adherent extends CommonObject
|
|||||||
// Substitutions
|
// Substitutions
|
||||||
$substitutionarray=array(
|
$substitutionarray=array(
|
||||||
'%DOL_MAIN_URL_ROOT%'=>DOL_MAIN_URL_ROOT,
|
'%DOL_MAIN_URL_ROOT%'=>DOL_MAIN_URL_ROOT,
|
||||||
|
'%ID%'=>$msgishtml?dol_htmlentitiesbr($this->id):$this->id,
|
||||||
'%INFOS%'=>$msgishtml?dol_htmlentitiesbr($infos):$infos,
|
'%INFOS%'=>$msgishtml?dol_htmlentitiesbr($infos):$infos,
|
||||||
'%CIVILITE%'=>$this->getCivilityLabel($msgishtml?0:1),
|
'%CIVILITE%'=>$this->getCivilityLabel($msgishtml?0:1),
|
||||||
'%PRENOM%'=>$msgishtml?dol_htmlentitiesbr($this->prenom):$this->prenom,
|
'%PRENOM%'=>$msgishtml?dol_htmlentitiesbr($this->prenom):$this->prenom,
|
||||||
|
|||||||
Reference in New Issue
Block a user