Stop passing processor to itself
authoreileen <emcnaughton@wikimedia.org>
Fri, 12 Jul 2019 04:23:11 +0000 (16:23 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 12 Jul 2019 04:23:11 +0000 (16:23 +1200)
CRM/Export/BAO/Export.php
CRM/Export/BAO/ExportProcessor.php

index 10a17b21af8448e1f466ecc48bd7f7e592049fd9..6a4d2d26a10ce61ff16fb1952b631b08caa8555c 100644 (file)
@@ -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;
         }
index 6bd987a1be0710a13fbc35ad008183cb9abaa989..3bf4f7d0a477f6dabeb7ee2c4709c4aeb75a1d3a 100644 (file)
@@ -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;
     }