{ts}Soft Credit{/ts}
{foreach from=$softContributions item="softCont"}
{$softCont.contact_name} {$softCont.amount|crmMoney:$currency} {if $softCont.soft_credit_type_label} ({$softCont.soft_credit_type_label}) {/if}
{foreach from=$softCont.custom item=customGroup key=cgId} {* start of outer foreach *} {foreach from=$customGroup item=customValue key=cvId}
{$customValue.title}
{foreach from=$customValue.fields item=element key=field_id} {if $element.options_per_line != 0} {else} {if $element.field_data_type == 'Money'} {if $element.field_type == 'Text'} {else} {/if} {else} {/if} {/if}
{$element.field_title} {* sort by fails for option per line. Added a variable to iterate through the element array*} {foreach from=$element.field_value item=val} {$val}
{/foreach}
{$element.field_title}{$element.field_value|crmMoney}{$element.field_value} {if $element.contact_ref_id} {/if} {if $element.field_data_type == 'Memo'} {$element.field_value|nl2br} {else} {$element.field_value} {/if} {if $element.contact_ref_id} {/if}
{/foreach}
{/foreach} {/foreach} {* end of outer custom group foreach *}
{/foreach}