Commit c58085f8 authored by eileen's avatar eileen

Stop passing processor to itself

parent 44fc53ab
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment