Skip to content

Commit

Permalink
use smarty2 compatible foreach notation
Browse files Browse the repository at this point in the history
  • Loading branch information
ufundo committed Nov 20, 2024
1 parent 4a7c030 commit 2856c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/afform/core/templates/afform/customGroups/afblock.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="af-markup">{$custom.help_pre}</div>
{/if}

{foreach $custom.fields as $field}
{foreach from=$custom.fields item=field}
{* for multiple record fields there is no need to prepend
the group name because it is provided as the join_entity above *}
<af-field name="{if !$custom.is_multiple}{$custom.name}.{/if}{$field.name}" />
Expand Down

0 comments on commit 2856c18

Please sign in to comment.