From 2eb424b4a1604ed910d6cc9a533e7efc942258e2 Mon Sep 17 00:00:00 2001
From: Jaap Jansma <jaap.jansma@civicoop.org>
Date: Thu, 20 Feb 2025 13:50:16 +0100
Subject: [PATCH] Fixed issue with CSV export file name.

---
 CHANGELOG.md                                          | 1 +
 CRM/DataprocessorOutputExport/AbstractSpreadsheet.php | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index c9341b21..672be653 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,7 @@
 
 * Fixed issues with Aggregated Contribution data source
 * Added extra filtes to data sources, such as a filter for event on the participant data source.
+* Fixed issue with CSV export file name.
 
 # Version 1.117
 
diff --git a/CRM/DataprocessorOutputExport/AbstractSpreadsheet.php b/CRM/DataprocessorOutputExport/AbstractSpreadsheet.php
index d40b8994..91eca654 100644
--- a/CRM/DataprocessorOutputExport/AbstractSpreadsheet.php
+++ b/CRM/DataprocessorOutputExport/AbstractSpreadsheet.php
@@ -126,7 +126,7 @@ abstract class CRM_DataprocessorOutputExport_AbstractSpreadsheet extends CRM_Dat
     $this->getFileFormatClass($configuration)->processConfiguration($submittedValues, $configuration);
 
     if (isset($submittedValues['altfilename']) && ''!==$submittedValues['altfilename']) {
-      $configuration['altfilename'] = CRM_Utils_String::munge($this->removeFileExtensionFromFileName($submittedValues['altfilename']), $configuration) . '.' . $this->getExtension($configuration);
+      $configuration['altfilename'] = CRM_Utils_String::munge($this->removeFileExtensionFromFileName($submittedValues['altfilename'], $configuration)) . '.' . $this->getExtension($configuration);
     }
     return $configuration;
   }
-- 
GitLab