Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#4419 - Crash on membership tab of contribution page config (should go into 5.64) #26757

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions templates/CRM/Member/Form/MembershipBlock.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@
<table class="report">
<tr class="columnheader" style="vertical-align:top;"><th style="border-right: 1px solid #4E82CF;">{ts}Include these membership types{/ts}</th><th{if $is_recur} style="border-right: 1px solid #4E82CF;"{/if}>{ts}Default{/ts}<br />
</th>{if $is_recur}<th>{ts}Auto-renew{/ts}</th>{/if}</tr>
{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)}
<tr>
<td class="labels font-light">{$form.membership_type.$key.html}</td>
<td class="labels font-light">{$form.membership_type_default.$key.html}</td>
Expand Down