Skip to content

Commit b8239e0

Browse files
committed
NEW add possibility to not synchronize thirdparty <--> member
1 parent 8cd3abb commit b8239e0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

htdocs/adherents/card.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@
416416
}
417417

418418
if (!$error) {
419-
$result = $object->update($user, 0, $nosyncuser, $nosyncuserpass);
419+
$nosyncthirdparty = (!getDolGlobalString('MEMBER_NO_SYNC_LINKED_THIRDPARTY') ? 0 : 1);
420+
421+
$result = $object->update($user, 0, $nosyncuser, $nosyncuserpass, $nosyncthirdparty);
420422

421423
if ($result >= 0 && !count($object->errors)) {
422424
$categories = GETPOST('memcats', 'array');

htdocs/societe/card.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,9 @@
684684
}
685685
//var_dump($object);exit;
686686

687-
$result = $object->update($socid, $user, 1, $object->oldcopy->codeclient_modifiable(), $object->oldcopy->codefournisseur_modifiable(), 'update', 0);
687+
$nosyncmember = (!getDolGlobalString('SOCIETE_NO_SYNC_LINKED_MEMBER') ? 0 : 1);
688+
689+
$result = $object->update($socid, $user, 1, $object->oldcopy->codeclient_modifiable(), $object->oldcopy->codefournisseur_modifiable(), 'update', $nosyncmember);
688690

689691
if ($result > 0) {
690692
// Update mass emailing flag into table mailing_unsubscribe

0 commit comments

Comments
 (0)