From: ivan Date: Tue, 25 May 2010 11:07:38 +0000 (+0000) Subject: fix rt/rt/ bad links, RT#7873 X-Git-Tag: root_of_svc_elec_features~234 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=be91be03818d9f7322dc29282fbfa902d65bfec3 fix rt/rt/ bad links, RT#7873 --- diff --git a/rt/share/html/Elements/ColumnMap b/rt/share/html/Elements/ColumnMap index a1475a99d..7f5a16dcb 100644 --- a/rt/share/html/Elements/ColumnMap +++ b/rt/share/html/Elements/ColumnMap @@ -157,7 +157,12 @@ my $COLUMN_MAP = { } qw(WebPath WebBaseURL WebURL)), WebRequestPath => { value => sub { substr( $m->request_path, 1 ) } }, - WebRequestPathDir => { value => sub { substr( $m->request_comp->dir_path, 1 ) } }, + #WebRequestPathDir => { value => sub { substr( $m->request_comp->dir_path, 1 ) } }, + WebRequestPathDir => { value => sub { + my $wrpd = substr( $m->request_comp->dir_path, 1 ); + $wrpd =~ s(rt/)(); #this is hacky, dunno why this happens + $wrpd; + } }, }; $COLUMN_MAP->{'CF'} = $COLUMN_MAP->{'CustomField'};