[rt-users] Keywords in queue listings again

Colleen colleen at darksideproductions.net
Wed Aug 21 20:30:29 EDT 2002


Try this, in that same subroutine in Keyword.pm


sub RelativePath {
    my $self = shift;
    my $OtherKey = shift;

    my $OtherPath = ref($OtherKey) ? $OtherKey->Path() : $OtherKey;
# my $OtherPath = $OtherKey;
    my $MyPath = $self->Path;
    $MyPath =~ s/^$OtherPath\///g;
    return ($MyPath);
}




> -----Original Message-----
> From: billp [mailto:billp at wjp.net]
> Sent: Wednesday, August 21, 2002 5:30 PM
> To: rt-users at lists.fsck.com
> Subject: [rt-users] Keywords in queue listings again
> 
> References:
>   http://lists.fsck.com/pipermail/rt-devel/2002-May/002225.html
>   http://lists.fsck.com/pipermail/rt-devel/2002-May/002227.html
>   http://lists.fsck.com/pipermail/rt-devel/2002-May/002228.html
> 
> Ok, so combing through the archives (and some help from others on
> the list), I found the following method to display my keywords in
> my queue listings:
> 
> In etc/config.pm, WebOptions, I added:
> 
>         { Header => 'State',
>          TicketAttribute => 'KeywordsObj(1)->RelativePaths()->[0];'
>          },
> 
> In Keyword.pm (line 279)  Changed:
> 
> from:	my $OtherPath = $OtherKey->Path();
> to:	my $OtherPath = $OtherKey;
> 
> Problems:
> 
> 1) If I do not change Keyword.pm, it breaks the queue listing and
>    rt2 comes back with "cannot display page."  Completely breaks
>    the listing.
> 
> 2) If I do the Keyword.pm change -- the listing of keywords INSIDE
>    the ticket show up as:
> 	"State o State/Whatever"  (instead of "State o Whatever")
> 
> Is anyone doing this successfully, so keywords appear correctly
> in both the queue listing and the keyword section inside the
> ticket?  If so, how?
> 
> thanks
> bill
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
> 
> Have you read the FAQ? The RT FAQ Manager lives at
http://fsck.com/rtfm




More information about the rt-users mailing list