Skip to content

Commit

Permalink
Merge pull request #60 from andrew-cormick-dockery/civi-5.22-fix
Browse files Browse the repository at this point in the history
Fix compatiblity issue with Civi 5.22: don't call the Civi API with a…
  • Loading branch information
eileenmcnaughton authored Feb 20, 2020
2 parents d777b8c + 6e6648f commit 867366b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CRM/Core/Payment/Ewayrecurring.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ public function getContactID($entity, $entityID) {
if ($entity == 'recur') {
$entity = 'contribution_recur';
}
if (empty($entity)) {
return 0;
}
try {
return civicrm_api3($entity, 'getvalue', array('id' => $entityID, 'return' => 'contact_id'));
}
Expand Down
5 changes: 3 additions & 2 deletions info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
<author>Melbourne CiviCRM</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2016-01-18</releaseDate>
<version>1.2</version>
<releaseDate>2020-02-19</releaseDate>
<version>1.2.1</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.4</ver>
<ver>4.5</ver>
<ver>4.6</ver>
<ver>4.7</ver>
<ver>5.22</ver>
</compatibility>
<comments></comments>
<civix>
Expand Down

0 comments on commit 867366b

Please sign in to comment.