From 76c723075bac192f6405cabdb3b82ad4a31f6333 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 9 Feb 2011 15:31:12 +0000 Subject: [PATCH] New: Link between third party and member is visible on all third party tabs --- htdocs/comm/fiche.php | 2 +- htdocs/comm/prospect/fiche.php | 2 +- htdocs/fourn/fiche.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index b632f520951..ca247158afa 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -415,7 +415,7 @@ if ($socid > 0) print ''.$langs->trans("LinkedToDolibarrMember").''; print ''; $adh=new Adherent($db); - $result=$adh->fetch('','',$soc->id); + $result=$adh->fetch('','',$objsoc->id); if ($result > 0) { $adh->ref=$adh->getFullName($langs); diff --git a/htdocs/comm/prospect/fiche.php b/htdocs/comm/prospect/fiche.php index 08eb61f56b0..de49be12526 100644 --- a/htdocs/comm/prospect/fiche.php +++ b/htdocs/comm/prospect/fiche.php @@ -183,7 +183,7 @@ if ($socid > 0) print ''.$langs->trans("LinkedToDolibarrMember").''; print ''; $adh=new Adherent($db); - $result=$adh->fetch('','',$soc->id); + $result=$adh->fetch('','',$societe->id); if ($result > 0) { $adh->ref=$adh->getFullName($langs); diff --git a/htdocs/fourn/fiche.php b/htdocs/fourn/fiche.php index fa67713def1..dadf77ae459 100644 --- a/htdocs/fourn/fiche.php +++ b/htdocs/fourn/fiche.php @@ -186,7 +186,7 @@ if ( $societe->fetch($socid) ) print ''.$langs->trans("LinkedToDolibarrMember").''; print ''; $adh=new Adherent($db); - $result=$adh->fetch('','',$soc->id); + $result=$adh->fetch('','',$societe->id); if ($result > 0) { $adh->ref=$adh->getFullName($langs);