From 8a6567d7dcfaa13990a8c76b5659bc47b866cb23 Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 26 Feb 2017 17:06:45 +1300 Subject: [PATCH] CRM-19490 change 'view' action check to '&' to also pick up 'preview' action --- templates/CRM/UF/Form/Fields.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/UF/Form/Fields.tpl b/templates/CRM/UF/Form/Fields.tpl index e1c342929f..4fbe9a4e7e 100644 --- a/templates/CRM/UF/Form/Fields.tpl +++ b/templates/CRM/UF/Form/Fields.tpl @@ -89,7 +89,7 @@ {include file="CRM/Profile/Form/GreetingType.tpl"} {elseif ($profileFieldName eq 'group' && $form.group) || ($profileFieldName eq 'tag' && $form.tag)} {include file="CRM/Contact/Form/Edit/TagsAndGroups.tpl" type=$profileFieldName title=null context="profile"} - {elseif $field.is_datetime_field && $action == 4} + {elseif $field.is_datetime_field && $action & 4} {assign var="date_value" value=$form.$profileFieldName.value} {$date_value|date_format:"%Y-%m-%d"|crmDate:$config->dateformatshortdate} -- 2.25.1