From 364eb417548ccaf614e77e2a46d1e461e39229e8 Mon Sep 17 00:00:00 2001 From: Luke Fromhold Date: Tue, 23 Oct 2018 19:06:55 +1100 Subject: [PATCH] Adding $Up. prefix to $ColumnCount references within $Fieldlist loops --- templates/SilverStripe/Forms/CompositeField.ss | 4 ++-- templates/SilverStripe/Forms/CompositeField_holder_small.ss | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/SilverStripe/Forms/CompositeField.ss b/templates/SilverStripe/Forms/CompositeField.ss index 41a3ea9b5..3a42cd042 100644 --- a/templates/SilverStripe/Forms/CompositeField.ss +++ b/templates/SilverStripe/Forms/CompositeField.ss @@ -1,6 +1,6 @@ <% loop $FieldList %> - <% if $ColumnCount %> -
+ <% if $Up.ColumnCount %> +
$FieldHolder
<% else %> diff --git a/templates/SilverStripe/Forms/CompositeField_holder_small.ss b/templates/SilverStripe/Forms/CompositeField_holder_small.ss index 081da5b4f..c7b433f13 100644 --- a/templates/SilverStripe/Forms/CompositeField_holder_small.ss +++ b/templates/SilverStripe/Forms/CompositeField_holder_small.ss @@ -4,8 +4,8 @@ <% end_if %> <% loop $FieldList %> - <% if $ColumnCount %> -
+ <% if $Up.ColumnCount %> +
$SmallFieldHolder
<% else %>