Skip to content

Commit

Permalink
Stop returning unaltered cFields parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Dec 26, 2022
1 parent 666f848 commit cc09859
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRM/Dedupe/Merger.php
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ public static function moveAllBelongings($mainId, $otherId, $migrationInfo, $che
$submitted = [];
}
foreach ($submitted as $key => $value) {
[$cFields, $submitted] = self::processCustomFields($mainId, $key, $cFields, $submitted, $value);
$submitted = self::processCustomFields($mainId, $key, $cFields, $submitted, $value);
}

// move view only custom fields CRM-5362
Expand Down Expand Up @@ -2206,7 +2206,7 @@ protected static function processCustomFields($mainId, $key, $cFields, $submitte
if (substr($key, 0, 7) === 'custom_') {
$fid = (int) substr($key, 7);
if (empty($cFields[$fid])) {
return [$cFields, $submitted];
return $submitted;
}
$htmlType = $cFields[$fid]['attributes']['html_type'];
$isSerialized = CRM_Core_BAO_CustomField::isSerialized($cFields[$fid]['attributes']);
Expand Down Expand Up @@ -2277,7 +2277,7 @@ protected static function processCustomFields($mainId, $key, $cFields, $submitte
}
}
}
return [$cFields, $submitted];
return $submitted;
}

/**
Expand Down

0 comments on commit cc09859

Please sign in to comment.