Created
December 16, 2016 05:57
-
-
Save jitendrapurohit/77f0a1df0acedfd245c0c72ba5ede99c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CRM/Pledge/BAO/Pledge.php b/CRM/Pledge/BAO/Pledge.php | |
index c8594c0..6e5371c 100644 | |
--- a/CRM/Pledge/BAO/Pledge.php | |
+++ b/CRM/Pledge/BAO/Pledge.php | |
@@ -154,7 +154,6 @@ class CRM_Pledge_BAO_Pledge extends CRM_Pledge_DAO_Pledge { | |
$transaction = new CRM_Core_Transaction(); | |
$paymentParams = array(); | |
- $paymentParams['status_id'] = CRM_Utils_Array::value('status_id', $params); | |
if (!empty($params['installment_amount'])) { | |
$params['amount'] = $params['installment_amount'] * $params['installments']; | |
} | |
@@ -174,6 +173,7 @@ class CRM_Pledge_BAO_Pledge extends CRM_Pledge_DAO_Pledge { | |
} | |
} | |
} | |
+ $paymentParams['status_id'] = CRM_Utils_Array::value('status_id', $params); | |
$pledge = self::add($params); | |
if (is_a($pledge, 'CRM_Core_Error')) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment