CRM-19642 - membership autorenew error when included via price set
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 25 Oct 2016 06:33:59 +0000 (12:03 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 25 Oct 2016 06:33:59 +0000 (12:03 +0530)
templates/CRM/Contribute/Form/Contribution/Main.tpl

index 388916feb576ba8f834759ba7c775eca76622d94..576f40e62d6f84920cba9f2649b2b1c87c3255e5 100644 (file)
   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) {