Fix master-only regression on id
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 24 Oct 2023 20:17:00 +0000 (09:17 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 24 Oct 2023 20:18:13 +0000 (09:18 +1300)
CRM/Financial/BAO/Order.php
templates/CRM/Price/Form/PriceSet.tpl

index 80ef1d33d2fdfbd2b541765caac41ed5ba66949d..849f9ee458eb443e0162801accc6a464c58e0289 100644 (file)
@@ -686,7 +686,7 @@ class CRM_Financial_BAO_Order {
             if ($membershipType['auto_renew'] && empty($this->priceSetMetadata['auto_renew_membership_field'])) {
               // Quick form layer supports one auto-renew membership type per price set. If we
               // want more for any reason we can add another array property.
-              $this->priceSetMetadata['auto_renew_membership_field'] = (int) $option['membership_type_id'];
+              $this->priceSetMetadata['auto_renew_membership_field'] = (int) $option['id'];
             }
           }
         }
index c717226b5b93d0d8dce489202cc1b213c601ee32..46f317b4bed1d713d2f10ce32f99201d3be14ba5 100644 (file)
                       <div class='label'></div>
                       <div class='content' id="auto_renew_section">
                         {if $form.auto_renew}
-                          {$form.auto_renew.html}&nbsp;{$form.auto_renew.label|escape}
+                          {$form.auto_renew.html}&nbsp;{$form.auto_renew.label|smarty:nodefaults|purify}
                         {/if}
                       </div>
                       <div class='content' id="force_renew" style='display: none'>{ts}Membership will renew automatically.{/ts}</div>