From: Eileen McNaughton Date: Tue, 5 Dec 2023 08:20:14 +0000 (+1300) Subject: Remove notice from main donate page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5ebcc2757bd0ec5388cb07d1171564824fdd83cd;p=civicrm-core.git Remove notice from main donate page auto_renew is added to the form after allowAutoRenewMembership is assigned, and only if it is true - so the check for cj('auto_renew') is not enhanced by the check for the variable - but it DOES lead to notices on the other pages --- diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 96ab9b0d5f..84f8490e06 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -319,9 +319,9 @@ function toggleRecur() { var isRecur = cj('input[id="is_recur"]:checked'); - var allowAutoRenew = {/literal}'{$allowAutoRenewMembership}'{literal}; + var quickConfig = {/literal}'{$quickConfig}'{literal}; - if (allowAutoRenew && cj("#auto_renew") && quickConfig) { + if (cj("#auto_renew") && quickConfig) { showHideAutoRenew(null); }