Skip to content

Commit

Permalink
Merge pull request #26520 from larssandergreen/Don't-add-contact-to-D…
Browse files Browse the repository at this point in the history
…omain-Group-on-edit

Don't add Contact to Domain Group on edit
  • Loading branch information
colemanw authored Jun 13, 2023
2 parents 99908f7 + a48ab38 commit 51ec12f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contact/BAO/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public static function &create(&$params, $fixAddress = TRUE, $invokeHooks = TRUE

$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)) {
Expand Down

0 comments on commit 51ec12f

Please sign in to comment.