From eb4ce8152fd3ef9e53987236475b16815cc3d765 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 14 Apr 2022 14:11:23 +1200 Subject: [PATCH] Remove non-functional code 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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Import/DataSource/CSV.php b/CRM/Import/DataSource/CSV.php index 61b1217afe..9e0c830877 100644 --- a/CRM/Import/DataSource/CSV.php +++ b/CRM/Import/DataSource/CSV.php @@ -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']); } /** -- 2.25.1