From 3ab6117c5a2ab50d953b92af2926d95a42ae621e Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Tue, 25 Oct 2016 12:03:59 +0530 Subject: [PATCH] CRM-19642 - membership autorenew error when included via price set --- templates/CRM/Contribute/Form/Contribution/Main.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 388916feb5..576f40e62d 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -349,7 +349,8 @@ function toggleRecur( ) { var isRecur = cj('input[id="is_recur"]:checked'); var allowAutoRenew = {/literal}'{$allowAutoRenewMembership}'{literal}; - if ( allowAutoRenew && cj("#auto_renew") ) { + var quickConfig = {/literal}{$quickConfig}{literal}; + if ( allowAutoRenew && cj("#auto_renew") && quickConfig) { showHideAutoRenew( null ); } if (isRecur.val() > 0) { -- 2.25.1