Skip to content

Commit

Permalink
Merge pull request #22673 from agileware/CIVICRM-1924
Browse files Browse the repository at this point in the history
Fix spelling mistake in function name, addMembershipToRealtedContacts should be addMembershipToRelatedContacts
  • Loading branch information
colemanw authored Feb 1, 2022
2 parents 6b6a215 + 6bb508e commit aa9d3ae
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 aa9d3ae

Please sign in to comment.