X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftable-tickets.html;h=d722c9d2be7260809cf284575fe36e74bb662f12;hb=45d0f6c6325fb8ab5fdc478a7dc278872defa479;hp=ffcaf067719495f854b5cd7bbe097676a88e50cb;hpb=916836bcfff6d378e3bbdfde981bcf496b5c527c;p=freeside.git
diff --git a/httemplate/elements/table-tickets.html b/httemplate/elements/table-tickets.html
index ffcaf0677..d722c9d2b 100644
--- a/httemplate/elements/table-tickets.html
+++ b/httemplate/elements/table-tickets.html
@@ -5,11 +5,14 @@ View
<% mt('resolved') |h %>
+% if ( @tickets ) {
+
<& /elements/table-grid.html &>
% my $bgcolor1 = '#eeeeee';
% my $bgcolor2 = '#ffffff';
% my $bgcolor = '';
+
<% mt('#') |h %> |
<% mt('Subject') |h %> |
@@ -26,6 +29,7 @@ View
<% mt('Service') |h %> |
% }
+
% foreach my $ticket ( @tickets ) {
% my $href = FS::TicketSystem->href_ticket($ticket->{id});
@@ -91,6 +95,8 @@ View
% }
+%}
+
<%init>
@@ -153,7 +159,7 @@ if ( $ss_priority ) {
my $format = $conf->config('date_format') || '%Y-%m-%d';
my $date_formatter = sub {
- my $time = str2time($_[0], 'GMT');
+ my $time = parse_datetime($_[0], 'GMT');
# exclude times within 24 hours of zero
($time > 86400) ? time2str($format, $time) : '';
};