From: jitendrapurohit Date: Mon, 4 Apr 2016 11:05:06 +0000 (+0530) Subject: CRM-18358: js break when custom date field included in 'On behalf' and 'Honor' Profile X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bd0b19cf4d382b82dbdea14372dead859ec0df1c;p=civicrm-core.git CRM-18358: js break when custom date field included in 'On behalf' and 'Honor' Profile --- 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' ) }