CRM-19490 change 'view' action check to '&' to also pick up 'preview' action
[civicrm-core.git] / templates / CRM / UF / Form / Fields.tpl
index e1c342929f9a4737463bb5e799a6013397e9e7ec..4fbe9a4e7e4c33c6aecf58c78f865960a4dcdb45 100644 (file)
@@ -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}
             <span class="crm-frozen-field">
               {$date_value|date_format:"%Y-%m-%d"|crmDate:$config->dateformatshortdate}