From 0fa552074aba5eed0a526a5ffb200d1567735e35 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 21 Oct 2007 23:18:13 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20D=E9clenchement=20des=20triggers=20incor?= =?UTF-8?q?rects=20sur=20modif=20mot=20de=20passe=20adh=E9rent=20ou=20user?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/adherents/adherent.class.php | 5 ++++- htdocs/user.class.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php index 858b2533fdd..69396911da5 100644 --- a/htdocs/adherents/adherent.class.php +++ b/htdocs/adherents/adherent.class.php @@ -20,7 +20,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -569,6 +568,8 @@ class Adherent { if ($this->user_id && ! $nosyncuser) { + require_once(DOL_DOCUMENT_ROOT."/user.class.php"); + // This member is linked with a user, so we also update users informations // if this is an update. $luser=new User($this->db); @@ -774,6 +775,8 @@ class Adherent if ($this->user_id && ! $nosyncuser) { + require_once(DOL_DOCUMENT_ROOT."/user.class.php"); + // This member is linked with a user, so we also update users informations // if this is an update. $luser=new User($this->db); diff --git a/htdocs/user.class.php b/htdocs/user.class.php index f2c32484575..0cdc54aab8c 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -22,7 +22,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -984,6 +983,8 @@ class User { if ($this->fk_member && ! $nosyncmember) { + require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php"); + // This user is linked with a member, so we also update members informations // if this is an update. $adh=new Adherent($this->db); @@ -1172,6 +1173,8 @@ class User if ($this->fk_member && ! $nosyncmember) { + require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php"); + // This user is linked with a member, so we also update members informations // if this is an update. $adh=new Adherent($this->db);