Skip to content

Commit

Permalink
Merge pull request #145 from jitendrapurohit/profileblock
Browse files Browse the repository at this point in the history
Fix fatal error on inline profile block
  • Loading branch information
colemanw authored Jun 4, 2024
2 parents 283ea13 + 6d5f911 commit 6ae6fc8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions templates/CRM/Contactlayout/Form/Inline/ProfileBlock.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@
{strip}
<table class="form-layout-compressed">
<tr>
{* sort by fails for option per line. Added a variable to iterate through the element array*}
{assign var="index" value="1"}
{foreach name=outer key=key item=item from=$form.$n}
{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)}
<td class="labels font-light">{$form.$n.$key.html}</td>
{if $count == $field.options_per_line}
</tr>
Expand Down

0 comments on commit 6ae6fc8

Please sign in to comment.