From a48ab38032f806d745b1fbf0cb4e5f207eb9b436 Mon Sep 17 00:00:00 2001 From: larssandergreen Date: Tue, 13 Jun 2023 08:02:13 -0600 Subject: [PATCH] Don't add Contact to Domain Group on edit --- CRM/Contact/BAO/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index c47485d1a4..b4c5d7ea8a 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -298,7 +298,7 @@ class CRM_Contact_BAO_Contact extends CRM_Contact_DAO_Contact implements Civi\Co $params['contact_id'] = $contact->id; - if (Civi::settings()->get('is_enabled')) { + if (!$isEdit && Civi::settings()->get('is_enabled')) { // Enabling multisite causes the contact to be added to the domain group. $domainGroupID = CRM_Core_BAO_Domain::getGroupId(); if (!empty($domainGroupID)) { -- 2.25.1