From 5ec060aaa73514b9f670c344542419b5ed986ee7 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 28 Mar 2023 18:42:32 +1300 Subject: [PATCH] Fix bug in just-merged upgrade code --- CRM/Upgrade/Incremental/php/FiveSixtyOne.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Upgrade/Incremental/php/FiveSixtyOne.php b/CRM/Upgrade/Incremental/php/FiveSixtyOne.php index caa0ade7dd..6b0233144a 100644 --- a/CRM/Upgrade/Incremental/php/FiveSixtyOne.php +++ b/CRM/Upgrade/Incremental/php/FiveSixtyOne.php @@ -102,7 +102,7 @@ class CRM_Upgrade_Incremental_php_FiveSixtyOne extends CRM_Upgrade_Incremental_B ]; $apiv4 = Contribution::getFields(FALSE)->addWhere('custom_field_id', '>', 0)->execute(); foreach ($apiv4 as $apiv4Field) { - $fieldMap['custom_' . $apiv4Field['id']] = $apiv4Field['name']; + $fieldMap['custom_' . $apiv4Field['custom_field_id']] = $apiv4Field['name']; } // Update the mapped fields. -- 2.25.1