-- fixed for CRM-12294, added condition to display no thank you contribution only...
authorPradeep Nayak <pradeep@pradeep>
Mon, 8 Apr 2013 10:23:54 +0000 (15:53 +0530)
committerPradeep Nayak <pradeep@pradeep>
Mon, 8 Apr 2013 10:23:54 +0000 (15:53 +0530)
CRM/Price/BAO/Field.php

index c2c34a00d5ff2217a51d6e5c2d6ea882f73edae3..435585412928e7149f0054d99d38b6651b280f77 100644 (file)
@@ -377,7 +377,8 @@ class CRM_Price_BAO_Field extends CRM_Price_DAO_Field {
             $choice[$opId]->freeze();
           }
         }
-        if (property_exists($qf, '_membershipBlock') && $field->name == 'contribution_amount') {
+        if (property_exists($qf, '_membershipBlock') && $qf->_membershipBlock 
+          && $field->name == 'contribution_amount') {
           $choice[] = $qf->createElement('radio', NULL, '', ts('No thank you'), '-1',
             array(
               'onclick' => 'clearAmountOther();',