[Import] [Ref] Remove unused variable
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 14 May 2022 21:13:13 +0000 (09:13 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 14 May 2022 21:13:13 +0000 (09:13 +1200)
CRM/Contact/Import/Parser/Contact.php

index 0e6644c45bb278375e2ce40795caa008f09c47be..f55ff39671434b882b92bc0ea218dd4a88ff5554 100644 (file)
@@ -353,10 +353,6 @@ class CRM_Contact_Import_Parser_Contact extends CRM_Import_Parser {
         $errorMessage = $e->getMessage();
         array_unshift($values, $errorMessage);
 
-        $importRecordParams = [
-          $statusFieldName => 'ERROR',
-          "${statusFieldName}Msg" => $errorMessage,
-        ];
         $this->setImportStatus((int) $values[count($values) - 1], 'ERROR', $errorMessage);
         return CRM_Import_Parser::ERROR;
       }