CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Activity emails & dates
Pages: [1]

Author Topic: Activity emails & dates  (Read 493 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Activity emails & dates
November 28, 2011, 07:55:06 pm
We don't use the facility to send activity emails a whole lot but we just had reason to & the custom data data field was rendering incorrectly.

The patch below fixed (applied to the template) but I don't if there are instances where it would cause problems? The date as being assigned to the template was already formatted as '1 November 2011' & I'm guessing the template wasn't expecting that to have been done, or was expecting a time with it.

Code: [Select]
Index: xml/templates/message_templates/case_activity_html.tpl
===================================================================
--- xml/templates/message_templates/case_activity_html.tpl (revision 37702)
+++ xml/templates/message_templates/case_activity_html.tpl (working copy)
@@ -85,11 +85,7 @@
          {$field.label}
         </td>
         <td {$valueStyle}>
-         {if $field.type eq 'Date'}
-          {$field.value|crmDate:$config->dateformatDatetime}
-         {else}
           {$field.value}
-         {/if}
         </td>
        </tr>
       {/foreach}
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Activity emails & dates

This forum was archived on 2017-11-26.