From b782fe77c60eb0fc68746cc6273a77bce6dee94b Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Thu, 6 Jul 2023 19:11:55 -0400 Subject: [PATCH] backport of 26757 --- templates/CRM/Member/Form/MembershipBlock.tpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/CRM/Member/Form/MembershipBlock.tpl b/templates/CRM/Member/Form/MembershipBlock.tpl index 0974ef3d23..3c4af099d2 100644 --- a/templates/CRM/Member/Form/MembershipBlock.tpl +++ b/templates/CRM/Member/Form/MembershipBlock.tpl @@ -61,11 +61,9 @@ {ts}Default{/ts}
{if $is_recur}
{/if} - {assign var="index" value="1"} {foreach name=outer key=key item=item from=$form.membership_type} - {if $index < 10} - {assign var="index" value=`$index+1`} - {else} + {* There are both numeric and non-numeric keys mixed in here, where the non-numeric are metadata that aren't arrays with html members. *} + {if is_array($item) && array_key_exists('html', $item)} -- 2.25.1
{ts}Include these membership types{/ts}{ts}Auto-renew{/ts}
{$form.membership_type.$key.html} {$form.membership_type_default.$key.html}