From f780dde4bedc5ed9bedd76123af0b03bd402f535 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20J=2E=20G=C3=B3mez?= Date: Fri, 15 May 2015 16:45:51 -0400 Subject: [PATCH] CRM-16511: Fixed missing closing tag for price set rows. --- templates/CRM/Price/Form/PriceSet.tpl | 35 +++++++++++++++------------ 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/templates/CRM/Price/Form/PriceSet.tpl b/templates/CRM/Price/Form/PriceSet.tpl index f735fdbc80..52ad50410b 100644 --- a/templates/CRM/Price/Form/PriceSet.tpl +++ b/templates/CRM/Price/Form/PriceSet.tpl @@ -39,27 +39,30 @@
{if ($element.html_type eq 'CheckBox' || $element.html_type == 'Radio') && $element.options_per_line} {assign var="element_name" value="price_"|cat:$field_id} -
{$form.$element_name.label}
-
- {assign var="rowCount" value="1"} - {assign var="count" value="1"} +
{$form.$element_name.label}
+
+ {assign var="elementCount" value="0"} + {assign var="optionCount" value="0"} + {assign var="rowCount" value="0"} {foreach name=outer key=key item=item from=$form.$element_name} - {if is_numeric($key) } - {if $count == 1}
{/if} - {$form.$element_name.$key.html} - {if $count == $element.options_per_line} -
- {assign var="rowCount" value=`$rowCount+1`} - {assign var="count" value="1"} - {else} - {assign var="count" value=`$count+1`} - {/if} + {assign var="elementCount" value=`$elementCount+1`} + {if is_numeric($key) } + {assign var="optionCount" value=`$optionCount+1`} + {if $optionCount == 1} + {assign var="rowCount" value=`$rowCount+1`} +
+ {/if} + {$form.$element_name.$key.html} + {if $optionCount == $element.options_per_line || $elementCount == $form.$element_name|@count} +
+ {assign var="optionCount" value="0"} {/if} + {/if} {/foreach} {if $element.help_post} -
{$element.help_post}
+
{$element.help_post}
{/if} -
+
{if !empty($extends) && $extends eq "Membership"}
-- 2.25.1