projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bdc8f6
)
CRM-18688: Whitelist Pending Status
author
root
<nishant.bhorodia@gmail.com>
Wed, 22 Jun 2016 09:58:40 +0000
(15:28 +0530)
committer
root
<nishant.bhorodia@gmail.com>
Wed, 22 Jun 2016 09:58:40 +0000
(15:28 +0530)
CRM/Core/Payment/BaseIPN.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/Payment/BaseIPN.php
b/CRM/Core/Payment/BaseIPN.php
index 0c8f9f70a41975a8e77ebbe807f9803c134e9d34..49e3c704809383e3787210e90a22975bf6a87ad9 100644
(file)
--- a/
CRM/Core/Payment/BaseIPN.php
+++ b/
CRM/Core/Payment/BaseIPN.php
@@
-346,8
+346,11
@@
class CRM_Core_Payment_BaseIPN {
'labelColumn' => 'name',
'flip' => 1,
));
+ // Cancel only Pending memberships
+ // CRM-18688
+ $pendingStatusId = $membershipStatuses['Pending'];
foreach ($memberships as $membership) {
- if ($membership) {
+ if ($membership
&& ($membership->status_id == $pendingStatusId)
) {
$membership->status_id = $membershipStatuses['Cancelled'];
$membership->save();