Fix rc regression - js error on autorenew checkbox
authoreileen <emcnaughton@wikimedia.org>
Fri, 12 Mar 2021 06:58:17 +0000 (19:58 +1300)
committereileen <emcnaughton@wikimedia.org>
Fri, 12 Mar 2021 06:58:17 +0000 (19:58 +1300)
This commit
https://github.com/civicrm/civicrm-core/pull/19647/commits/cfab7c9d1dc5d1e8438131354685928cd9da3877 renamed membershipType to membershipTypeID but missed this spot,
resulting in js errors on the new membership by credit card form

templates/CRM/Member/Form/Membership.tpl

index 68c056f63550e19b8e4dba2908954a06f835c6f0..6f61bba51aede8b07132f5aa7eba1f09a51348bc 100644 (file)
       buildAutoRenew( null, null, '{$membershipMode}');
     {/if}
     {literal}
-    function buildAutoRenew( membershipType, processorId, mode ) {
+    function buildAutoRenew(membershipTypeID, processorId, mode ) {
       var action = {/literal}'{$action}'{literal};
 
       //for update lets hide it when not already recurring.