CRM-16367 (Backoffice Contribution Form) further fix on premium
authorEileen McNaughton <eileen@fuzion.co.nz>
Sun, 3 May 2015 11:52:57 +0000 (23:52 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sun, 3 May 2015 11:52:57 +0000 (23:52 +1200)
CRM/Contribute/Form/Contribution.php
tests/phpunit/CRM/Contribute/Form/ContributionTest.php

index 5c27b2671e534f8cf110366a3cf34f91eff2b0b8..addad1c60a1b3d20da21e833f0ac2b9123fbc22b 100644 (file)
@@ -1790,7 +1790,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
     }
 
     if ($contribution->id && isset($formValues['product_name'][0])) {
-      CRM_Contribute_Form_AdditionalInfo::processPremium($formValues, $contribution->id,
+      CRM_Contribute_Form_AdditionalInfo::processPremium($submittedValues, $contribution->id,
         $this->_premiumID, $this->_options
       );
     }
index ef4cfc26b7e682be1e750c5963546f9b41d42dc5..3eedadc43b40d505bbf9404df023256a5b1cfeb9 100644 (file)
@@ -365,5 +365,5 @@ class CRM_Contribute_Form_ContributionTest extends CiviUnitTestCase {
       'credit_card_number' => '411111111111111',
     );
   }
-}
 
+}