From: ivan Date: Fri, 23 Jul 2010 22:09:30 +0000 (+0000) Subject: fix rt/rt links moving custom fields up/down and refreshing homepage, RT#9280 X-Git-Tag: root_of_svc_elec_features~33 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=c6a3eafdce6e88b4f33a37a824331d5d9be8d9bd fix rt/rt links moving custom fields up/down and refreshing homepage, RT#9280 --- diff --git a/rt/FREESIDE_MODIFIED b/rt/FREESIDE_MODIFIED index f11cd5cfc..f3360c1f6 100644 --- a/rt/FREESIDE_MODIFIED +++ b/rt/FREESIDE_MODIFIED @@ -25,6 +25,8 @@ share/html/Elements/EditCustomFieldDate #customfield date patch (NEW) share/html/Elements/Header share/html/Elements/PageLayout #html/Elements/QuickCreate + share/html/Elements/RefreshHomepage + share/html/Elements/RT__CustomField/ColumnMap share/html/Elements/RT__Ticket/ColumnMap share/html/Elements/ShowCustomFieldDate #customfield date patch (NEW) share/html/Elements/SelectDate diff --git a/rt/share/html/Elements/RT__CustomField/ColumnMap b/rt/share/html/Elements/RT__CustomField/ColumnMap index 6d8d76a4c..0a867eb26 100644 --- a/rt/share/html/Elements/RT__CustomField/ColumnMap +++ b/rt/share/html/Elements/RT__CustomField/ColumnMap @@ -155,7 +155,9 @@ my $COLUMN_MAP = { : ($args->{'PassArguments'}); my %pass = map { $_ => $args->{$_} } grep exists $args->{$_}, @pass; - my $uri = RT->Config->Get('WebPath') . $m->request_path; + my $path = $m->request_path; + $path =~ s(^/rt)(); #hacky, dunno why this happens + my $uri = RT->Config->Get('WebPath') . $path; my @res = ( \' +
<& /Elements/Refresh, Name => 'HomeRefreshInterval', Default => $session{'home_refresh_interval'}||RT->Config->Get('HomePageRefreshInterval', $session{'CurrentUser'}) &> <& /Elements/Submit, Label => loc('Go!') &>
+<%init> +my $path = $m->request_path; +$path =~ s(^/rt)(); #hacky, dunno why this happens +