Remove non-functional code
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 14 Apr 2022 02:11:23 +0000 (14:11 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 18 Apr 2022 00:41:54 +0000 (12:41 +1200)
Instantiating the importJob with a table name and no createTable
does nothing but set the name so that getTableName() gets it
- import_table_name is always set so these lines do nothing

CRM/Import/DataSource/CSV.php

index 61b1217afeb32b39d3b6baeb6ed6702caff0abee..9e0c83087763adb5d228be901d423a153a554ba2 100644 (file)
@@ -89,10 +89,7 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource {
     );
 
     $form->set('originalColHeader', CRM_Utils_Array::value('original_col_header', $result));
-
-    $table = $result['import_table_name'];
-    $importJob = new CRM_Contact_Import_ImportJob($table);
-    $form->set('importTableName', $importJob->getTableName());
+    $form->set('importTableName', $result['import_table_name']);
   }
 
   /**