From 9c2d639662b83ad3954fc5913961ffc5dc8011b9 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Mon, 8 Apr 2013 15:53:54 +0530 Subject: [PATCH] -- fixed for CRM-12294, added condition to display no thank you contribution only if membership block is enabled --- CRM/Price/BAO/Field.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Price/BAO/Field.php b/CRM/Price/BAO/Field.php index c2c34a00d5..4355854129 100644 --- a/CRM/Price/BAO/Field.php +++ b/CRM/Price/BAO/Field.php @@ -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();', -- 2.25.1