From ed3c0b8d4ef19ad79303852cfc1012c52c730a1c Mon Sep 17 00:00:00 2001 From: Alex Saelens Date: Wed, 4 Jul 2018 09:46:31 +1200 Subject: [PATCH] Make column work The ColumnCount is set on the CompositeField class, and not on its FieldList. So to get the ColumnCount, we need to use $Top to get out of the loop. --- templates/forms/CompositeField_holder.ss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/forms/CompositeField_holder.ss b/templates/forms/CompositeField_holder.ss index d4364c4ee..24f53616c 100644 --- a/templates/forms/CompositeField_holder.ss +++ b/templates/forms/CompositeField_holder.ss @@ -4,8 +4,8 @@ <% end_if %> <% loop $FieldList %> - <% if $ColumnCount %> -
+ <% if $Top.ColumnCount %> +
$FieldHolder
<% else %>