From: monishdeb Date: Wed, 30 Oct 2013 14:41:54 +0000 (+0530) Subject: Related fix for CRM-13630 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8449564608a7faac0456af67b68b15599ee972b1;p=civicrm-core.git Related fix for CRM-13630 ---------------------------------------- * CRM-13630: Minimum contribution amount check for Premiums fails when online contribution form uses a Membership price set. http://issues.civicrm.org/jira/browse/CRM-13630 --- diff --git a/templates/CRM/Contribute/Form/Contribution/PremiumBlock.tpl b/templates/CRM/Contribute/Form/Contribution/PremiumBlock.tpl index 7b1ae2b66f..78812a7f2c 100644 --- a/templates/CRM/Contribute/Form/Contribution/PremiumBlock.tpl +++ b/templates/CRM/Contribute/Form/Contribution/PremiumBlock.tpl @@ -309,8 +309,8 @@ cj(option[0]).val(option[1]); cj(option[0]).trigger('change'); } - else if (cj(price_sets[amount]).attr('type') == 'checkbox') { - cj(price_sets[amount]).attr("checked",true); + else if (cj(price_sets[selected_price_set]).attr('type') == 'checkbox') { + cj(price_sets[selected_price_set]).attr("checked",true); if ((typeof totalfee !== 'undefined') && (typeof display == 'function')) { if (totalfee > 0) { totalfee += amount; @@ -322,8 +322,8 @@ } } else { - cj(price_sets[amount]).click(); - cj(price_sets[amount]).trigger('click'); + cj(price_sets[selected_price_set]).click(); + cj(price_sets[selected_price_set]).trigger('click'); } } }