Skip to content

Commit

Permalink
Merge pull request #22259 from eileenmcnaughton/update
Browse files Browse the repository at this point in the history
Rename protected function
  • Loading branch information
seamuslee001 authored Dec 15, 2021
2 parents e658538 + 630b73e commit f6f3b0b
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 @@ -683,7 +683,7 @@ protected static function getMultiValueCidRefs() {
* @throws \CiviCRM_API3_Exception
* @throws \Civi\API\Exception\UnauthorizedException
*/
protected static function createContact($contactID, $params) {
protected static function updateContact(int $contactID, $params): void {
// This parameter causes blank fields to be be emptied out.
// We can probably remove.
$params['updateBlankLocInfo'] = TRUE;
Expand Down Expand Up @@ -1934,7 +1934,7 @@ public static function moveAllBelongings($mainId, $otherId, $migrationInfo, $che
if (!isset($submitted['suffix_id']) && !empty($migrationInfo['main_details']['suffix_id'])) {
$submitted['suffix_id'] = $migrationInfo['main_details']['suffix_id'];
}
self::createContact($mainId, $submitted);
self::updateContact($mainId, $submitted);
}
$transaction->commit();
CRM_Utils_Hook::post('merge', 'Contact', $mainId);
Expand Down

0 comments on commit f6f3b0b

Please sign in to comment.