From 8449564608a7faac0456af67b68b15599ee972b1 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Wed, 30 Oct 2013 20:11:54 +0530 Subject: [PATCH] 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 --- .../CRM/Contribute/Form/Contribution/PremiumBlock.tpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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'); } } } -- 2.25.1