Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.5
-
Fix Version/s: 4.6
-
Component/s: None
-
Labels:None
-
Documentation Required?:None
Description
I hit an error in testing that I think must occur in 4.5 on recurring membership payments. I'm going to complete the test & submit against this issue & someone can figure out if it recurs in 4.5 & port if appropriate. The issue is that $contribution->getNumTermsByContributionAndMembershipType is called from BaseIPN. This function uses $this->id but it is called when it hasn't been saved so there is no ID. In the test it results in a fatal which I presume is the case in 4.5
1) CRM_Core_Payment_AuthorizeNetIPNTest::testIPNPaymentMembershipRecurSuccess
Exception: A fatal error was triggered: One of parameters (value: ) is not of the type Integer
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Error.php:334
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Utils/Type.php:347
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/DAO.php:1198
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/DAO.php:1164
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php:288
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Payment/BaseIPN.php:406
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Payment/AuthorizeNetIPN.php:202
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Payment/AuthorizeNetIPN.php:86
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php:83
/home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/tools/scripts/phpunit:80
Attachments
Issue Links
- provides patch for
-
CRM-14951 membership num_terms not respected when IPN style payment processor is used
- Done/Fixed