From a69b8fdce5e70d490ddd8f91f16395ee426b0e01 Mon Sep 17 00:00:00 2001 From: Jack Anderson Date: Thu, 7 Nov 2024 10:44:43 +0000 Subject: [PATCH] Fix #10599 - Update Import Error --- modules/Import/sources/ImportDataSource.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/Import/sources/ImportDataSource.php b/modules/Import/sources/ImportDataSource.php index 59b7c679724..f108e892d52 100755 --- a/modules/Import/sources/ImportDataSource.php +++ b/modules/Import/sources/ImportDataSource.php @@ -130,7 +130,7 @@ abstract public function getTotalRecordCount(); * @return void */ abstract public function getHeaderColumns(); - + /** * Set the source name. * @@ -197,7 +197,7 @@ public static function writeRowToLastImport($import_module, $module, $id) if ($module == 'Case') { $module = 'aCase'; } - + $last_import->bean_type = $module; $last_import->bean_id = $id; return $last_import->save(); @@ -228,9 +228,9 @@ protected function formatErrorMessage($error, $fieldName, $fieldValue) { global $current_language; $mod_strings = return_module_language($current_language, 'Import'); - return "{$mod_strings['LBL_ERROR']} $error
". - "{$mod_strings['LBL_FIELD_NAME']} $fieldName
" . - "{$mod_strings['LBL_VALUE']} $fieldValue
"; + return "{$mod_strings['LBL_ERROR']}: $error. ". + "- {$mod_strings['LBL_FIELD_NAME']}: $fieldName. " . + "- {$mod_strings['LBL_VALUE']}: $fieldValue"; } public function resetRowErrorCounter() { @@ -330,7 +330,7 @@ public function writeErrorRecord($errorMessage = '') //Add the error message to the first column array_unshift($rowData, $errorMessage); fputcsv($fp, $rowData); - + fclose($fp); fclose($fpNoErrors); }