summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2013-06-04 12:26:14 -0700
committerIvan Kohler <ivan@freeside.biz>2013-06-04 12:26:14 -0700
commitbe03a0f16d1476522950d93869d17d067375804e (patch)
tree70f7689844ff1b4276b85a4fbabbf9297d671eb2
parent41a196e59f41821c3c35e1833ce35eea8fb7bab9 (diff)
reconcile date formatting from #23121 with RT 4.0.13 (RT#13852)
-rw-r--r--rt/share/html/Elements/ColumnMap5
1 files changed, 3 insertions, 2 deletions
diff --git a/rt/share/html/Elements/ColumnMap b/rt/share/html/Elements/ColumnMap
index 7b127e90e..12a61453c 100644
--- a/rt/share/html/Elements/ColumnMap
+++ b/rt/share/html/Elements/ColumnMap
@@ -117,13 +117,14 @@ my $COLUMN_MAP = {
my @values;
# it is guaranteed to be the same type for all fields, right?
my $v = $values->First;
+ my $cftype = $v->CustomFieldObj->Type;
do {
- if ($v->Type eq 'Image') {
+ if ($cftype eq 'Image') {
push @values,
\($m->scomp( '/Elements/ShowCustomFieldImage',
Object => $v ));
- } elsif ( $v->Type eq 'Date' or $v->Type eq 'DateTime' ) {
+ } elsif ( $cftype eq 'Date' or $cftype eq 'DateTime' ) {
# then actually return the date object;
# ProcessColumnMapValue will stringify it
my $DateObj = RT::Date->new( $session{'CurrentUser'} );