diff options
author | Mark Wells <mark@freeside.biz> | 2013-05-29 13:15:22 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-05-29 13:15:22 -0700 |
commit | ea32f987f9c72ad6990bfa326af2935f79bf580c (patch) | |
tree | 727de18b686cbe93c571b85d3e5b6ea7132819c5 /rt/share/html/Search/Elements | |
parent | ac272d7302249e13fbf07084087ae642059d63a0 (diff) |
display date custom fields as real dates, #23121
Diffstat (limited to 'rt/share/html/Search/Elements')
-rw-r--r-- | rt/share/html/Search/Elements/ResultsStructuredView | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/rt/share/html/Search/Elements/ResultsStructuredView b/rt/share/html/Search/Elements/ResultsStructuredView index 495f0d0c8..0e9457c45 100644 --- a/rt/share/html/Search/Elements/ResultsStructuredView +++ b/rt/share/html/Search/Elements/ResultsStructuredView @@ -132,7 +132,7 @@ while ( my $Ticket = $Tickets->Next()) { if ( !exists $ColumnMap->{$col}{'value'} ) { my $map = {}; - foreach ('attribute', 'value', 'date') { + foreach ('attribute', 'value') { $map->{$_} = $m->comp( '/Elements/ColumnMap', Class => 'RT__Ticket', @@ -140,19 +140,13 @@ while ( my $Ticket = $Tickets->Next()) { Attr => $_, ); } - # Canonicalize dates - if ( defined $map->{'date'} ) { - $map->{value} = sub { - my $DateObj = $map->{'date'}->(@_) or return undef; - $FormatDate->($DateObj); - }; - } $ColumnMap->{$col} = $map; } push @out, ProcessColumnMapValue( $ColumnMap->{$col}{'value'}, Arguments => [ $Ticket, $row ], + FormatDate => $FormatDate, ); } #foreach $subcol $value = join('', '<span>', @out, '</span>'); |