From 19c0bd71b779f958944efa0da77260a48c1cfeeb Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Thu, 4 Aug 2022 17:14:58 +1000 Subject: [PATCH] CIVICRM-2025 Matching by External / Contact ID always matches contacts with ID < 10 for Participant importer and possibly others because return params is not an array --- CRM/Utils/DeprecatedUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/DeprecatedUtils.php b/CRM/Utils/DeprecatedUtils.php index 4bfe2c71f435..7b9cb3f67da2 100644 --- a/CRM/Utils/DeprecatedUtils.php +++ b/CRM/Utils/DeprecatedUtils.php @@ -48,7 +48,7 @@ function _civicrm_api3_deprecated_duplicate_formatted_contact($params) { 'is_error' => 1, 'error_message' => [ 'code' => CRM_Core_Error::DUPLICATE_CONTACT, - 'params' => $contact->id, + 'params' => [$contact->id], 'level' => 'Fatal', 'message' => "Found matching contacts: $contact->id", ],