From 21f96d9b2fcc5633d44824325432e387bc8e2204 Mon Sep 17 00:00:00 2001 From: Kevin Levie Date: Wed, 19 Aug 2015 06:34:09 +0200 Subject: [PATCH] Fix sorting by date in datatables --- templates/CRM/Contact/Page/View/GroupContact.tpl | 4 ++-- templates/CRM/Contact/Page/View/Note.tpl | 2 +- templates/CRM/Event/Form/ManageEvent/Repeat.tpl | 4 ++-- templates/CRM/Event/Page/ManageEvent.tpl | 4 ++-- templates/CRM/Member/Form/MembershipRelated.tpl | 4 ++-- templates/CRM/Member/Page/Tab.tpl | 10 +++++----- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/templates/CRM/Contact/Page/View/GroupContact.tpl b/templates/CRM/Contact/Page/View/GroupContact.tpl index e8a80c89d1..ebf7264057 100644 --- a/templates/CRM/Contact/Page/View/GroupContact.tpl +++ b/templates/CRM/Contact/Page/View/GroupContact.tpl @@ -152,8 +152,8 @@ {ts 1=$row.out_method}Removed (by %1){/ts} - {$row.date_added|crmDate} - {$row.out_date|crmDate} + {$row.date_added|crmDate} + {$row.out_date|crmDate} {if $permission EQ 'edit'} {ts}Rejoin Group{/ts} diff --git a/templates/CRM/Contact/Page/View/Note.tpl b/templates/CRM/Contact/Page/View/Note.tpl index 1bc63cb9fe..fda7ceb3de 100644 --- a/templates/CRM/Contact/Page/View/Note.tpl +++ b/templates/CRM/Contact/Page/View/Note.tpl @@ -238,7 +238,7 @@ {/if} {$note.subject} - {$note.modified_date|crmDate} + {$note.modified_date|crmDate} {$note.createdBy} diff --git a/templates/CRM/Event/Form/ManageEvent/Repeat.tpl b/templates/CRM/Event/Form/ManageEvent/Repeat.tpl index 8ebcf77bc7..079ab6ec01 100644 --- a/templates/CRM/Event/Form/ManageEvent/Repeat.tpl +++ b/templates/CRM/Event/Form/ManageEvent/Repeat.tpl @@ -57,8 +57,8 @@ title="{ts}View event info page{/ts}" class="bold">{$row.title}  ({ts}ID:{/ts} {$row.id}) {if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} - {$row.start_date|crmDate:"%b %d, %Y %l:%M %P"} - {$row.end_date|crmDate:"%b %d, %Y %l:%M %P"} + {$row.start_date|crmDate:"%b %d, %Y %l:%M %P"} + {$row.end_date|crmDate:"%b %d, %Y %l:%M %P"} {if $row.is_active eq 1}{ts}Yes{/ts} {else} {ts}No{/ts} {/if} diff --git a/templates/CRM/Event/Page/ManageEvent.tpl b/templates/CRM/Event/Page/ManageEvent.tpl index de39966455..1cb8d7f536 100644 --- a/templates/CRM/Event/Page/ManageEvent.tpl +++ b/templates/CRM/Event/Page/ManageEvent.tpl @@ -93,8 +93,8 @@ {$row.state_province} {$row.event_type} {if $row.is_public eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if} - {$row.start_date|crmDate:"%b %d, %Y %l:%M %P"} - {$row.end_date|crmDate:"%b %d, %Y %l:%M %P"} + {$row.start_date|crmDate:"%b %d, %Y %l:%M %P"} + {$row.end_date|crmDate:"%b %d, %Y %l:%M %P"} {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} {$row.campaign} {/if} diff --git a/templates/CRM/Member/Form/MembershipRelated.tpl b/templates/CRM/Member/Form/MembershipRelated.tpl index 033394f75c..bb1fff88ec 100644 --- a/templates/CRM/Member/Form/MembershipRelated.tpl +++ b/templates/CRM/Member/Form/MembershipRelated.tpl @@ -47,8 +47,8 @@ {$rel.relation} - {$rel.start_date|crmDate} - {$rel.end_date|crmDate} + {$rel.start_date|crmDate} + {$rel.end_date|crmDate} {$rel.name} diff --git a/templates/CRM/Member/Page/Tab.tpl b/templates/CRM/Member/Page/Tab.tpl index e4b2cb2552..07970fa4e3 100644 --- a/templates/CRM/Member/Page/Tab.tpl +++ b/templates/CRM/Member/Page/Tab.tpl @@ -89,9 +89,9 @@ {$activeMember.membership_type} {if $activeMember.owner_membership_id}
({ts}by relationship{/ts}){/if} - {$activeMember.join_date|crmDate} - {$activeMember.start_date|crmDate} - {$activeMember.end_date|crmDate} + {$activeMember.join_date|crmDate} + {$activeMember.start_date|crmDate} + {$activeMember.end_date|crmDate} {$activeMember.status} {$activeMember.source} {if $activeMember.auto_renew}{ts}Auto-renew{/ts} {/if} @@ -131,8 +131,8 @@ {$inActiveMember.membership_type} {if $inActiveMember.owner_membership_id}
({ts}by relationship{/ts}){/if} - {$inActiveMember.start_date|crmDate} - {$inActiveMember.end_date|crmDate} + {$inActiveMember.start_date|crmDate} + {$inActiveMember.end_date|crmDate} {$inActiveMember.status} {$inActiveMember.source} {if $inActiveMember.auto_renew}{ts}Auto-renew{/ts} {/if} -- 2.25.1