From: Pradeep Nayak Date: Sat, 30 Aug 2014 20:41:50 +0000 (+0530) Subject: -- CRM-15055, handled IPN request for status change X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d2035566046f5776d954b5c743f9b221997e6803;p=civicrm-core.git -- CRM-15055, handled IPN request for status change ---------------------------------------- * CRM-15055: Line item for membership entity should be created even when Record Payment is not checked https://issues.civicrm.org/jira/browse/CRM-15055 --- diff --git a/CRM/Core/Payment/BaseIPN.php b/CRM/Core/Payment/BaseIPN.php index 3de497e666..6d8a807dde 100644 --- a/CRM/Core/Payment/BaseIPN.php +++ b/CRM/Core/Payment/BaseIPN.php @@ -601,6 +601,10 @@ LIMIT 1;"; $input['participant_id'] = $contribution->_relatedObjects['participant']->id; $input['skipLineItem'] = 1; } + elseif (!empty($contribution->_relatedObjects['membership'])) { + $input['skipLineItem'] = TRUE; + $input['contribution_mode'] = 'membership'; + } //@todo writing a unit test I was unable to create a scenario where this line did not fatal on second // and subsequent payments. In this case the line items are created at $this->addrecurLineItems // and since the contribution is saved prior to this line there is always a contribution-id,