Skip to content

Commit

Permalink
FIX : sync data thirdparty to member
Browse files Browse the repository at this point in the history
  • Loading branch information
ptibogxiv committed Apr 25, 2019
1 parent c76c0e6 commit 23f4536
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/societe/class/societe.class.php
Expand Up @@ -1136,12 +1136,16 @@ public function update($id, $user = '', $call_trigger = 1, $allowmodcodeclient =
//$lmember->firstname=$this->firstname?$this->firstname:$lmember->firstname; // We keep firstname and lastname of member unchanged
//$lmember->lastname=$this->lastname?$this->lastname:$lmember->lastname; // We keep firstname and lastname of member unchanged
$lmember->address=$this->address;
$lmember->zip=$this->zip;
$lmember->town=$this->town;
$lmember->email=$this->email;
$lmember->skype=$this->skype;
$lmember->twitter=$this->twitter;
$lmember->facebook=$this->facebook;
$lmember->linkedin=$this->linkedin;
$lmember->phone=$this->phone;
$lmember->state_id=$this->state_id;
$lmember->country_id=$this->country_id;

$result=$lmember->update($user, 0, 1, 1, 1); // Use nosync to 1 to avoid cyclic updates
if ($result < 0)
Expand Down

0 comments on commit 23f4536

Please sign in to comment.