Skip to content

Commit

Permalink
CIVICRM-1924 Fix spelling mistake in function name, addMembershipToRe…
Browse files Browse the repository at this point in the history
…altedContacts should be addMembershipToRelatedContacts
  • Loading branch information
agileware-justin committed Feb 1, 2022
1 parent dbfb218 commit 6bb508e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Dedupe/Merger.php
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ public static function moveContactBelongings($mergeHandler, $tables, $tableOpera
foreach ($sqls as $sql) {
CRM_Core_DAO::executeQuery($sql, [], TRUE, NULL, TRUE);
}
CRM_Dedupe_Merger::addMembershipToRealtedContacts($mainId);
CRM_Dedupe_Merger::addMembershipToRelatedContacts($mainId);
}

/**
Expand Down Expand Up @@ -1917,7 +1917,7 @@ public static function getContactFields() {
* @throws \CRM_Core_Exception
* @throws \CiviCRM_API3_Exception
*/
public static function addMembershipToRealtedContacts($contactID) {
public static function addMembershipToRelatedContacts($contactID) {
$dao = new CRM_Member_DAO_Membership();
$dao->contact_id = $contactID;
$dao->is_test = 0;
Expand Down

0 comments on commit 6bb508e

Please sign in to comment.