Merge pull request #23701 from eileenmcnaughton/unused
[civicrm-core.git] / CRM / Import / Form / DataSource.php
index a5e53ad43fd86dfca5f7c5adaf52136a26cdc52e..306fe2d755236bf756056be91e08ce8a535f4e98 100644 (file)
@@ -158,7 +158,6 @@ abstract class CRM_Import_Form_DataSource extends CRM_Import_Forms {
    *   Entity to set for paraser currently only for custom import
    */
   protected function submitFileForMapping($parserClassName, $entity = NULL) {
-    $this->controller->resetPage('MapField');
     CRM_Core_Session::singleton()->set('dateTypes', $this->getSubmittedValue('dateFormats'));
     $this->processDatasource();
 
@@ -181,6 +180,7 @@ abstract class CRM_Import_Form_DataSource extends CRM_Import_Forms {
 
     // add all the necessary variables to the form
     $parser->set($this);
+    $this->controller->resetPage('MapField');
   }
 
   /**