From: Erik Hommel Date: Wed, 6 Sep 2017 10:18:07 +0000 (+0200) Subject: CRM-21155 - Hook batchItems does not change the csv export X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e79b9642cf36f38e2c70500b8faf34ee31d2953f;p=civicrm-core.git CRM-21155 - Hook batchItems does not change the csv export Change to use results of hook when exporting. --- 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(); }