CRM-16737 adjustment, (do not merge to master) referred to wrong param
authoreileenmcnaughton <eileen@fuzion.co.nz>
Sun, 16 Aug 2015 13:44:52 +0000 (13:44 +0000)
committereileenmcnaughton <eileen@fuzion.co.nz>
Sun, 16 Aug 2015 13:44:52 +0000 (13:44 +0000)
CRM/Member/Form/Membership.php

index 2edfa77186d77b47d3bc69640e6020e958f50c9b..6ed75851275f06c45bd43a0cdade5f92df042923 100644 (file)
@@ -1429,7 +1429,7 @@ WHERE   id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
         // CRM-16737 $result['contribution_status_id'] is deprecated in favour
         // of payment_status_id as the payment processor only knows whether the payment is complete
         // not whether payment completes the contribution
-        $params['contribution_status_id'] = $params['payment_status_id'];
+        $params['contribution_status_id'] = $result['payment_status_id'];
       }
       // do what used to happen previously
       else {