Fix bug in just-merged upgrade code
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 28 Mar 2023 05:42:32 +0000 (18:42 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 28 Mar 2023 05:42:32 +0000 (18:42 +1300)
CRM/Upgrade/Incremental/php/FiveSixtyOne.php

index caa0ade7dd4deae212f57246e6c29be45dba6a49..6b0233144ae3cc38bf5603cae0460e2e7c809c1e 100644 (file)
@@ -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.