CRM-13034 Fix formRule in Main.php to ensure that premium minimum req amount is check...
authorDave Greenberg <dave@civicrm.org>
Fri, 19 Jul 2013 00:17:29 +0000 (17:17 -0700)
committerDave Greenberg <dave@civicrm.org>
Fri, 19 Jul 2013 00:17:29 +0000 (17:17 -0700)
----------------------------------------
* CRM-13034: Premium minimum price isn't checked if Amounts Block is deselected
  http://issues.civicrm.org/jira/browse/CRM-13034

CRM/Contribute/Form/Contribution/Main.php

index 3a4e138a54a2db4ae241b0563320e0778eeb5a0e..50d0875aae56cc9aec558b5a17fa3dd445625963 100644 (file)
@@ -897,9 +897,7 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
     }
 
     if (isset($fields['selectProduct']) &&
-      $fields['selectProduct'] != 'no_thanks' &&
-      $self->_values['amount_block_is_active']
-    ) {
+      $fields['selectProduct'] != 'no_thanks') {
       $productDAO = new CRM_Contribute_DAO_Product();
       $productDAO->id = $fields['selectProduct'];
       $productDAO->find(TRUE);