From af78b24238e46389c455ab182ddee8cbf74e4fa2 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 25 Oct 2023 09:17:00 +1300 Subject: [PATCH] Fix master-only regression on id --- CRM/Financial/BAO/Order.php | 2 +- templates/CRM/Price/Form/PriceSet.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Financial/BAO/Order.php b/CRM/Financial/BAO/Order.php index 80ef1d33d2..849f9ee458 100644 --- a/CRM/Financial/BAO/Order.php +++ b/CRM/Financial/BAO/Order.php @@ -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']; } } } diff --git a/templates/CRM/Price/Form/PriceSet.tpl b/templates/CRM/Price/Form/PriceSet.tpl index c717226b5b..46f317b4be 100644 --- a/templates/CRM/Price/Form/PriceSet.tpl +++ b/templates/CRM/Price/Form/PriceSet.tpl @@ -102,7 +102,7 @@
{if $form.auto_renew} - {$form.auto_renew.html} {$form.auto_renew.label|escape} + {$form.auto_renew.html} {$form.auto_renew.label|smarty:nodefaults|purify} {/if}
-- 2.25.1