Remove notice from main donate page
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 5 Dec 2023 08:20:14 +0000 (21:20 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 5 Dec 2023 08:20:14 +0000 (21:20 +1300)
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

templates/CRM/Contribute/Form/Contribution/Main.tpl

index 96ab9b0d5f99565953c1b3e1c9dd7ff3d28ecf4b..84f8490e06353920d35c658b0acd001756455928 100644 (file)
 
     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);
       }