Fix: Déclenchement des triggers incorrects sur modif mot de passe adhérent ou user
This commit is contained in:
parent
977f0a3fc1
commit
0fa552074a
@ -20,7 +20,6 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -569,6 +568,8 @@ class Adherent
|
|||||||
{
|
{
|
||||||
if ($this->user_id && ! $nosyncuser)
|
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
|
// This member is linked with a user, so we also update users informations
|
||||||
// if this is an update.
|
// if this is an update.
|
||||||
$luser=new User($this->db);
|
$luser=new User($this->db);
|
||||||
@ -774,6 +775,8 @@ class Adherent
|
|||||||
|
|
||||||
if ($this->user_id && ! $nosyncuser)
|
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
|
// This member is linked with a user, so we also update users informations
|
||||||
// if this is an update.
|
// if this is an update.
|
||||||
$luser=new User($this->db);
|
$luser=new User($this->db);
|
||||||
|
|||||||
@ -22,7 +22,6 @@
|
|||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -984,6 +983,8 @@ class User
|
|||||||
{
|
{
|
||||||
if ($this->fk_member && ! $nosyncmember)
|
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
|
// This user is linked with a member, so we also update members informations
|
||||||
// if this is an update.
|
// if this is an update.
|
||||||
$adh=new Adherent($this->db);
|
$adh=new Adherent($this->db);
|
||||||
@ -1172,6 +1173,8 @@ class User
|
|||||||
|
|
||||||
if ($this->fk_member && ! $nosyncmember)
|
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
|
// This user is linked with a member, so we also update members informations
|
||||||
// if this is an update.
|
// if this is an update.
|
||||||
$adh=new Adherent($this->db);
|
$adh=new Adherent($this->db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user