diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php index c7f0b1d9accd6..67ba487b30df1 100644 --- a/htdocs/adherents/card.php +++ b/htdocs/adherents/card.php @@ -416,7 +416,9 @@ } if (!$error) { - $result = $object->update($user, 0, $nosyncuser, $nosyncuserpass); + $nosyncthirdparty = getDolGlobalInt('MEMBER_NO_SYNC_LINKED_THIRDPARTY'); + + $result = $object->update($user, 0, $nosyncuser, $nosyncuserpass, $nosyncthirdparty); if ($result >= 0 && !count($object->errors)) { $categories = GETPOST('memcats', 'array'); diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index fc85d725e01b9..2b90b9a50b74a 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -684,7 +684,9 @@ } //var_dump($object);exit; - $result = $object->update($socid, $user, 1, $object->oldcopy->codeclient_modifiable(), $object->oldcopy->codefournisseur_modifiable(), 'update', 0); + $nosyncmember = getDolGlobalInt('SOCIETE_NO_SYNC_LINKED_MEMBER'); + + $result = $object->update($socid, $user, 1, $object->oldcopy->codeclient_modifiable(), $object->oldcopy->codefournisseur_modifiable(), 'update', $nosyncmember); if ($result > 0) { // Update mass emailing flag into table mailing_unsubscribe