FIX : must fetch member in current entity
This commit is contained in:
parent
c6755b3cf1
commit
3477cf6bd3
@ -1483,9 +1483,9 @@ class User extends CommonObject
|
|||||||
// This user is linked with a member, so we also update member information
|
// This user is linked with a member, so we also update member information
|
||||||
// if this is an update.
|
// if this is an update.
|
||||||
$adh=new Adherent($this->db);
|
$adh=new Adherent($this->db);
|
||||||
$result=$adh->fetch($this->fk_member);
|
$result=$adh->fetch('',$this->fk_member);
|
||||||
|
|
||||||
if ($result >= 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$adh->firstname=$this->firstname;
|
$adh->firstname=$this->firstname;
|
||||||
$adh->lastname=$this->lastname;
|
$adh->lastname=$this->lastname;
|
||||||
@ -1520,7 +1520,7 @@ class User extends CommonObject
|
|||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
elseif(!empty($adh->error) || !empty($adh->errors))
|
||||||
{
|
{
|
||||||
$this->error=$adh->error;
|
$this->error=$adh->error;
|
||||||
$this->errors=$adh->errors;
|
$this->errors=$adh->errors;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user