From 7952039ed51b3ae8d5e1dbf497747f0b6d4cef83 Mon Sep 17 00:00:00 2001 From: Jimmy Huang Date: Wed, 22 May 2024 14:34:04 +0800 Subject: [PATCH] refs #40616, fixes export file debug log message issue --- CRM/Export/BAO/Export.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index c9ea1607f..934363fbe 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -1314,9 +1314,11 @@ public static function importError() { readfile($errorFileName); } } + else { + CRM_Core_Error::debug_log_message('Import error file fetch error - unknown file: '."$qfKey $type $parserName"); + CRM_Core_Error::fatal('Invalid parameters'); + } - CRM_Core_Error::debug_log_message('Import error file fetch error - unknown file: '."$qfKey $type $parserName"); - CRM_Core_Error::fatal('Invalid parameters'); CRM_Utils_System::civiExit(); }