Skip to content

Commit

Permalink
Merge pull request #23122 from eileenmcnaughton/rr
Browse files Browse the repository at this point in the history
Fix function calls to be non-static
  • Loading branch information
eileenmcnaughton authored Apr 7, 2022
2 parents b991cdb + 672b72e commit 30231ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CRM/Contribute/Import/Parser/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function import($onDuplicate, &$values) {
}

// process pledge payment assoc w/ the contribution
return self::processPledgePayments($formatted);
return $this->processPledgePayments($formatted);
}
$labels = [
'id' => 'Contribution ID',
Expand Down Expand Up @@ -383,7 +383,7 @@ public function import($onDuplicate, &$values) {
}

// process pledge payment assoc w/ the contribution
return self::processPledgePayments($formatted);
return $this->processPledgePayments($formatted);
}

// Using new Dedupe rule.
Expand Down Expand Up @@ -450,7 +450,7 @@ public function import($onDuplicate, &$values) {
}

// process pledge payment assoc w/ the contribution
return self::processPledgePayments($formatted);
return $this->processPledgePayments($formatted);
}

/**
Expand All @@ -460,7 +460,7 @@ public function import($onDuplicate, &$values) {
*
* @return int
*/
public function processPledgePayments(array $formatted) {
private function processPledgePayments(array $formatted) {
if (!empty($formatted['pledge_payment_id']) && !empty($formatted['pledge_id'])) {
//get completed status
$completeStatusID = CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Completed');
Expand Down

0 comments on commit 30231ca

Please sign in to comment.