From 979ea42d3f3d8fe42bf8734391580d4e0ffdaeda Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 12 Jan 2013 15:40:38 +0100 Subject: [PATCH] Comments --- htdocs/adherents/class/adherent.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index 065a39db3f3..e2e20f41fba 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -950,7 +950,7 @@ class Adherent extends CommonObject $this->db->begin(); - // Update link to third party + // Remove link to third party onto any other members if ($thirdpartyid > 0) { $sql = "UPDATE ".MAIN_DB_PREFIX."adherent SET fk_soc = null"; @@ -960,7 +960,7 @@ class Adherent extends CommonObject $resql = $this->db->query($sql); } - // Update link to third party + // Add link to third party for current member $sql = "UPDATE ".MAIN_DB_PREFIX."adherent SET fk_soc = ".($thirdpartyid>0 ? $thirdpartyid : 'null'); $sql.= " WHERE rowid = ".$this->id;