Skip to content

Commit

Permalink
Fix intermittent test fail on NULL array getting contaminated & causi…
Browse files Browse the repository at this point in the history
…ng later tests to pass the wrong thing
  • Loading branch information
eileenmcnaughton committed Jun 14, 2019
1 parent 204a280 commit 80d8831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CRM/Contact/BAO/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,7 @@ public static function getContactDetails($id) {
*/
public static function createProfileContact(
&$params,
&$fields,
&$fields = [],
$contactID = NULL,
$addToGroupID = NULL,
$ufGroupId = NULL,
Expand Down
4 changes: 2 additions & 2 deletions CRM/Dedupe/Merger.php
Original file line number Diff line number Diff line change
Expand Up @@ -1679,8 +1679,8 @@ 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'];
}

CRM_Contact_BAO_Contact::createProfileContact($submitted, CRM_Core_DAO::$_nullArray, $mainId);
$null = NULL;
CRM_Contact_BAO_Contact::createProfileContact($submitted, $null, $mainId);
}
$transaction->commit();
CRM_Utils_Hook::post('merge', 'Contact', $mainId);
Expand Down

0 comments on commit 80d8831

Please sign in to comment.