From 2dedea8736833468b12a1c272ec5ab113f7c3477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Fri, 20 Nov 2015 22:03:44 +0100 Subject: [PATCH] FIX #4016 User link is not correctly formed in emailing receivers --- htdocs/comm/mailing/cibles.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/mailing/cibles.php b/htdocs/comm/mailing/cibles.php index 99c73dc4837..b73f8a0743b 100644 --- a/htdocs/comm/mailing/cibles.php +++ b/htdocs/comm/mailing/cibles.php @@ -485,13 +485,14 @@ if ($object->fetch($id) >= 0) { include_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php'; $m=new Adherent($db); - $m->id=$obj->source_id; + $m->fetch($obj->source_id); print $m->getNomUrl(2); } else if ($obj->source_type == 'user') { include_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php'; $m=new User($db); + $m->fetch($obj->source_id); $m->id=$obj->source_id; print $m->getNomUrl(2); } @@ -499,7 +500,7 @@ if ($object->fetch($id) >= 0) { include_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php'; $m=new Societe($db); - $m->id=$obj->source_id; + $m->fetch($obj->source_id); print $m->getNomUrl(2); } else