FIX #4016 User link is not correctly formed in emailing receivers
This commit is contained in:
parent
1f8b05264f
commit
2dedea8736
@ -485,13 +485,14 @@ if ($object->fetch($id) >= 0)
|
|||||||
{
|
{
|
||||||
include_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
|
||||||
$m=new Adherent($db);
|
$m=new Adherent($db);
|
||||||
$m->id=$obj->source_id;
|
$m->fetch($obj->source_id);
|
||||||
print $m->getNomUrl(2);
|
print $m->getNomUrl(2);
|
||||||
}
|
}
|
||||||
else if ($obj->source_type == 'user')
|
else if ($obj->source_type == 'user')
|
||||||
{
|
{
|
||||||
include_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php';
|
||||||
$m=new User($db);
|
$m=new User($db);
|
||||||
|
$m->fetch($obj->source_id);
|
||||||
$m->id=$obj->source_id;
|
$m->id=$obj->source_id;
|
||||||
print $m->getNomUrl(2);
|
print $m->getNomUrl(2);
|
||||||
}
|
}
|
||||||
@ -499,7 +500,7 @@ if ($object->fetch($id) >= 0)
|
|||||||
{
|
{
|
||||||
include_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
||||||
$m=new Societe($db);
|
$m=new Societe($db);
|
||||||
$m->id=$obj->source_id;
|
$m->fetch($obj->source_id);
|
||||||
print $m->getNomUrl(2);
|
print $m->getNomUrl(2);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user