From bd0b19cf4d382b82dbdea14372dead859ec0df1c Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Mon, 4 Apr 2016 16:35:06 +0530 Subject: [PATCH] CRM-18358: js break when custom date field included in 'On behalf' and 'Honor' Profile --- templates/CRM/UF/Form/Block.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/UF/Form/Block.tpl b/templates/CRM/UF/Form/Block.tpl index 1fe71fdb58..ccbd5c7583 100644 --- a/templates/CRM/UF/Form/Block.tpl +++ b/templates/CRM/UF/Form/Block.tpl @@ -120,7 +120,7 @@ {include file="CRM/Profile/Form/GreetingType.tpl"} {elseif ($n eq 'group' && $form.group) || ($n eq 'tag' && $form.tag)} {include file="CRM/Contact/Form/Edit/TagsAndGroups.tpl" type=$n title=null context="profile"} - {elseif ( ( $field.data_type eq 'Date' ) or + {elseif ((( $field.data_type eq 'Date' ) AND !$prefix) or ( $n|substr:-5:5 eq '_date' ) ) AND ( $form.formName neq 'Confirm' ) AND ( $form.formName neq 'ThankYou' ) } -- 2.25.1