CRM-19168: Fix membership batch update with profiles that have custom date fields.
authorMathieu Lutfy <mathieu@bidon.ca>
Tue, 2 Aug 2016 23:15:27 +0000 (19:15 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Tue, 2 Aug 2016 23:15:27 +0000 (19:15 -0400)
templates/CRM/Member/Form/Task/Batch.tpl

index b2a5068b63c23cc7526a4d8456a7c8db28f9bc11..52e8977dbcc9955b74076798f9f0f516dd9439db 100644 (file)
@@ -51,7 +51,7 @@
 
               {foreach from=$fields item=field key=fieldName}
                 {assign var=n value=$field.name}
-                {if ( $fields.$n.data_type eq 'Date') or ($n eq 'join_date') or ($n eq 'membership_start_date') or ($n eq 'membership_end_date')}
+                {if ($n eq 'join_date') or ($n eq 'membership_start_date') or ($n eq 'membership_end_date')}
                    <td class="compressed">{include file="CRM/common/jcalendar.tpl" elementName=$n elementIndex=$mid batchUpdate=1}</td>
                 {else}
                   <td class="compressed">{$form.field.$mid.$n.html}</td>