From e79b9642cf36f38e2c70500b8faf34ee31d2953f Mon Sep 17 00:00:00 2001 From: Erik Hommel Date: Wed, 6 Sep 2017 12:18:07 +0200 Subject: [PATCH] CRM-21155 - Hook batchItems does not change the csv export Change to use results of hook when exporting. --- CRM/Financial/BAO/ExportFormat/CSV.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Financial/BAO/ExportFormat/CSV.php b/CRM/Financial/BAO/ExportFormat/CSV.php index fcb0d05c34..1b3513cba1 100644 --- a/CRM/Financial/BAO/ExportFormat/CSV.php +++ b/CRM/Financial/BAO/ExportFormat/CSV.php @@ -231,8 +231,8 @@ class CRM_Financial_BAO_ExportFormat_CSV extends CRM_Financial_BAO_ExportFormat CRM_Utils_Hook::batchItems($queryResults, $batchItems); - $financialItems['headers'] = self::formatHeaders($financialItems); - self::export($financialItems); + $batchItems['headers'] = self::formatHeaders($batchItems); + self::export($batchItems); } parent::initiateDownload(); } -- 2.25.1