enotice fix
authorEileen McNaughton <eileen@fuzion.co.nz>
Thu, 13 Nov 2014 22:23:46 +0000 (11:23 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Fri, 14 Nov 2014 04:00:05 +0000 (17:00 +1300)
CRM/Contribute/Form/Contribution/Confirm.php
CRM/Price/BAO/PriceSet.php

index b9d220aa78ac1302646e920ff7a613f469a9dd8e..ed479118b685795a54476e263bcdd7579231beb4 100644 (file)
@@ -1940,6 +1940,9 @@ class CRM_Contribute_Form_Contribution_Confirm extends CRM_Contribute_Form_Contr
         $form->_contributeMode = 'notify';
       }
     }
+    else {
+      $form->_params['payment_processor'] = 0;
+    }
     $priceFields = $priceFields[$priceSetID]['fields'];
     CRM_Price_BAO_PriceSet::processAmount($priceFields, $paramsProcessedForForm, $lineItems, 'civicrm_contribution');
     $form->_lineItem = array($priceSetID => $lineItems);
index 4073be5213d562dab0e883ab02dd09d0f4d253b6..b5d8a155358afb40e1eca03542f4462a4c87b8ca 100644 (file)
@@ -1059,7 +1059,7 @@ WHERE  id = %1";
         // past price sets discounts are made inaccessible by this as the discount_id is set to NULL
         // on the participant record
         if (CRM_Price_BAO_PriceSet::removeFrom('civicrm_' . $entityName, $entity->id)) {
-          CRM_Core_BAO_Discount::del($this->_id,'civicrm_' . $entityName);
+          CRM_Core_BAO_Discount::del($entity->id,'civicrm_' . $entityName);
         }
       }
     }