From: Coleman Watts Date: Mon, 21 Jan 2019 18:11:54 +0000 (-0500) Subject: Fix broken date fields in survey response form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d6dac6671391ddfa29dc19dda79c8b194462ce07;p=civicrm-core.git Fix broken date fields in survey response form --- diff --git a/templates/CRM/Campaign/Form/Task/Interview.tpl b/templates/CRM/Campaign/Form/Task/Interview.tpl index c568dad101..7c749138f4 100644 --- a/templates/CRM/Campaign/Form/Task/Interview.tpl +++ b/templates/CRM/Campaign/Form/Task/Interview.tpl @@ -156,9 +156,7 @@ {continue} {/if} - {if ( ( $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'} + {if $fieldName|substr:0:5 eq 'phone'} {assign var="phone_ext_field" value=$fieldName|replace:'phone':'phone_ext'} {$form.field.$voterId.$fieldName.html} {if $form.field.$voterId.$phone_ext_field.html}