From c58085f8ce057a7c64a1422b632c6a68d3895b1c Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 12 Jul 2019 16:23:11 +1200 Subject: [PATCH] Stop passing processor to itself --- CRM/Export/BAO/Export.php | 2 +- CRM/Export/BAO/ExportProcessor.php | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/Export/BAO/Export.php b/CRM/Export/BAO/Export.php index 10a17b21af..6a4d2d26a1 100644 --- a/CRM/Export/BAO/Export.php +++ b/CRM/Export/BAO/Export.php @@ -290,7 +290,7 @@ INSERT INTO {$componentTable} SELECT distinct gc.contact_id FROM civicrm_group_c while ($iterationDAO->fetch()) { $count++; $rowsThisIteration++; - $row = $processor->buildRow($query, $iterationDAO, $outputColumns, $metadata, $paymentDetails, $addPaymentHeader, $processor); + $row = $processor->buildRow($query, $iterationDAO, $outputColumns, $metadata, $paymentDetails, $addPaymentHeader); if ($row === FALSE) { continue; } diff --git a/CRM/Export/BAO/ExportProcessor.php b/CRM/Export/BAO/ExportProcessor.php index 6bd987a1be..3bf4f7d0a4 100644 --- a/CRM/Export/BAO/ExportProcessor.php +++ b/CRM/Export/BAO/ExportProcessor.php @@ -860,12 +860,11 @@ class CRM_Export_BAO_ExportProcessor { * @param $metadata * @param $paymentDetails * @param $addPaymentHeader - * @param \CRM_Export_BAO_ExportProcessor $processor * * @return array|bool */ - public function buildRow($query, $iterationDAO, $outputColumns, $metadata, $paymentDetails, $addPaymentHeader, $processor) { - $paymentTableId = $processor->getPaymentTableID(); + public function buildRow($query, $iterationDAO, $outputColumns, $metadata, $paymentDetails, $addPaymentHeader) { + $paymentTableId = $this->getPaymentTableID(); if ($this->isHouseholdToSkip($iterationDAO->contact_id)) { return FALSE; } -- 2.25.1