From 2e20fdce03ee617b4ae39a1a662f6f0f8bd74720 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Tue, 25 Mar 2014 15:31:58 -0400 Subject: [PATCH] CRM-14384 - only display date picker if is_view neq 1 ---------------------------------------- * CRM-14384: don't display date picker in survey data entry screen for view only field http://issues.civicrm.org/jira/browse/CRM-14384 --- templates/CRM/Campaign/Form/Task/Interview.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Campaign/Form/Task/Interview.tpl b/templates/CRM/Campaign/Form/Task/Interview.tpl index b096922cab..b8a5ef6101 100644 --- a/templates/CRM/Campaign/Form/Task/Interview.tpl +++ b/templates/CRM/Campaign/Form/Task/Interview.tpl @@ -155,8 +155,8 @@ {continue} {/if} - {if ( $field.data_type eq 'Date') or - ( $fieldName eq 'thankyou_date' ) or ( $fieldName eq 'cancel_date' ) or ( $fieldName eq 'receipt_date' ) or ( $fieldName eq 'activity_date_time') } + {if ( ($field.data_type eq 'Date') or + ( $fieldName eq 'thankyou_date' ) or ( $fieldName eq 'cancel_date' ) or ( $fieldName eq 'receipt_date' ) or ( $fieldName eq 'activity_date_time') ) and $field.is_view neq 1 } {include file="CRM/common/jcalendar.tpl" elementName=$fieldName elementIndex=$voterId batchUpdate=1} {elseif $fieldName|substr:0:5 eq 'phone'} {assign var="phone_ext_field" value=$fieldName|replace:'phone':'phone_ext'} -- 2.25.1