Skip to content
Snippets Groups Projects
Unverified Commit f4570b6c authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #18353 from eileenmcnaughton/dupe

#1998 Address dedupe clash on dashboard contact
parents 69f2001a 3dbfe7e9
No related branches found
No related tags found
No related merge requests found
......@@ -541,6 +541,12 @@ INNER JOIN civicrm_membership membership2 ON membership1.membership_type_id = m
continue;
}
if ($table === 'civicrm_dashboard_contact') {
$sqls[] = "UPDATE IGNORE civicrm_dashboard_contact SET contact_id = $mainId WHERE contact_id = $otherId";
$sqls[] = "DELETE FROM civicrm_dashboard_contact WHERE contact_id = $otherId";
continue;
}
if ($table === 'civicrm_dedupe_exception') {
$sqls[] = "UPDATE IGNORE civicrm_dedupe_exception SET contact_id1 = $mainId WHERE contact_id1 = $otherId";
$sqls[] = "UPDATE IGNORE civicrm_dedupe_exception SET contact_id2 = $mainId WHERE contact_id2 = $otherId";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment