[REF] [Import] [Trivial] Make 'mapper' field available as a submittable value through...
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 26 Apr 2022 21:43:07 +0000 (09:43 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 26 Apr 2022 21:43:07 +0000 (09:43 +1200)
The fields defined here can be accessed from any field in
the flow, removing the need to pass the values from form to form

CRM/Import/Forms.php

index 518f16e4feea7ef644734fbcb71d29b8f1c6c35a..2b2a364fec7edfc084ef5bfb9dcc816d89282729 100644 (file)
@@ -111,6 +111,11 @@ class CRM_Import_Forms extends CRM_Core_Form {
     'dedupe_rule_id' => 'DataSource',
     'onDuplicate' => 'DataSource',
     'disableUSPS' => 'DataSource',
+    'doGeocodeAddress' => 'DataSource',
+    // Note we don't add the save mapping instructions for MapField here
+    // (eg 'updateMapping') - as they really are an action for that form
+    // rather than part of the mapping config.
+    'mapper' => 'MapField',
   ];
 
   /**