diff --git a/templates/CRM/Contactlayout/Form/Inline/ProfileBlock.tpl b/templates/CRM/Contactlayout/Form/Inline/ProfileBlock.tpl index 1bd683f..71905ba 100644 --- a/templates/CRM/Contactlayout/Form/Inline/ProfileBlock.tpl +++ b/templates/CRM/Contactlayout/Form/Inline/ProfileBlock.tpl @@ -27,12 +27,9 @@ {strip} - {* 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)} {if $count == $field.options_per_line}
{$form.$n.$key.html}