[freeside-commits] branch FREESIDE_3_BRANCH updated. bcaf42a4c99278a32ad4fcf412636da4a904720b

Ivan ivan at 420.am
Tue Jun 4 12:26:17 PDT 2013


The branch, FREESIDE_3_BRANCH has been updated
       via  bcaf42a4c99278a32ad4fcf412636da4a904720b (commit)
      from  83a1141cb391f9326027ee51045ac96584e49b8a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bcaf42a4c99278a32ad4fcf412636da4a904720b
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Jun 4 12:26:16 2013 -0700

    reconcile date formatting from #23121 with RT 4.0.13 (RT#13852)

diff --git a/rt/share/html/Elements/ColumnMap b/rt/share/html/Elements/ColumnMap
index 7b127e9..12a6145 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'} );

-----------------------------------------------------------------------

Summary of changes:
 rt/share/html/Elements/ColumnMap |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list