[rt-users] RT 3.6.3 - WebURL not Expanding for Ticket Display

Matthew Keller kellermg at potsdam.edu
Tue Jan 2 09:21:15 EST 2007


On Tue, 2007-01-02 at 08:06 -0600, David Gohara wrote:
> $SearchArg->{'Query'}  =~ s/__CurrentUser__/$session{'CurrentUser'}- 
>  >Id/ge;
> $SearchArg->{'Format'} =~ s/__WebPath__/$RT::WebPath/g;
> $SearchArg->{'Format'} =~ s/href=\"\/Ticket/href=\"$RT::WebPath\/ 
> Ticket/g;
> $SearchArg->{'Format'} =~ s/__loc\(["']?(\w+)["']?\)__/loc("$1")/ge;

I can't tell if the patched line is wrapped because of the mailer, or in
the code- regardless, it shouldn't be. Also, you may need to restart
your webserver (Apache I assume). I have mixed success with making
component changes and having them live. If that really isn't fixing the
problem, the other solution listed in my initial remedy note is the
_RIGHT_ solution, and that's changing the template in the database. Note
that when looking at the template in the database, it may well be base64
encoded, and thus look like "garbage", just base64decode it and it'll be
clear where the problem is.

Reposted below for simplicity:


> I've had 3.6.1 running for quite a while... just upgraded to 3.6.3...
> A
> problem I didn't report before (bad me) is still present: In the
> "Search
> - My Tickets" Attribute (and possibly others) in the database, the
> format content contains:
> 
> '<a
> href="/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject'
> 
> This is a problem for those of us whose WebPath isn't the root...
> shouldn't it be: 
> 
> '<a
> href="__WebPath__/Ticket/Display.html?id=__id__">__Subject__</a>/TITLE:Subject'
> 
> Anyhow, since I'm lazy and didn't want to find all the places this was
> munged I edited /Elements/ShowSearch and added the following under
> where
> __WebPath__ was expanded:
> 
> $SearchArg->{'Format'} =~ s/href=\"\/Ticket/href=\"$RT::WebPath
> \/Ticket/g;
> 
> I only remembered this because after installing 3.6.3 it clobbered the
> hack I used last time :) 
> 
> 3.6.3 is really nice... The new "set the defaults to MyRT" is really
> great, and the exposed Tools/MyDay is a nice piece as well.




More information about the rt-users mailing list