Merge pull request #8513 from dizzystuff/8512-compfield-colcount-fix

FIX: Adding $Up. prefix to $ColumnCount references within $Fieldlist loops
This commit is contained in:
Robbie Averill 2018-11-07 19:13:50 +02:00 committed by GitHub
commit 360c098f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<% loop $FieldList %>
<% if $ColumnCount %>
<div class="column-{$ColumnCount} $FirstLast">
<% if $Up.ColumnCount %>
<div class="column-{$Up.ColumnCount} $FirstLast">
$FieldHolder
</div>
<% else %>

View File

@ -4,8 +4,8 @@
<% end_if %>
<% loop $FieldList %>
<% if $ColumnCount %>
<div class="column-{$ColumnCount} $FirstLast">
<% if $Up.ColumnCount %>
<div class="column-{$Up.ColumnCount} $FirstLast">
$SmallFieldHolder
</div>
<% else %>