From 3727336cfff104b1e9b697b8cf9007945bbff9bd Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 12 Dec 2016 15:22:52 +1100 Subject: [PATCH] Fix regression in CRM-19490 where input field wasn't being properly set --- templates/CRM/UF/Form/Block.tpl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/templates/CRM/UF/Form/Block.tpl b/templates/CRM/UF/Form/Block.tpl index 692557d9c0..a6c4013fd4 100644 --- a/templates/CRM/UF/Form/Block.tpl +++ b/templates/CRM/UF/Form/Block.tpl @@ -124,8 +124,12 @@ ( $form.formName neq 'Confirm' ) AND ( $form.formName neq 'ThankYou' ) } {include file="CRM/common/jcalendar.tpl" elementName=$n} - {elseif ( $n|substr:-5:5 eq '_date' )} - {$form.$n.value|date_format:"%Y-%m-%d"|crmDate:$config->dateformatshortdate} + {elseif ( $n|substr:-5:5 eq '_date' ) } + {assign var="date_value" value=$form.$n.value} + + {$date_value|date_format:"%Y-%m-%d"|crmDate:$config->dateformatshortdate} + + {elseif $n|substr:0:5 eq 'phone'} {assign var="phone_ext_field" value=$n|replace:'phone':'phone_ext'} {if $prefix}{$form.$prefix.$n.html}{else}{$form.$n.html}{/if} -- 2.25.1