[rt-users] Keywords in queue listings again
Ayan R. Kayal
ayan.kayal at yale.edu
Wed Aug 21 21:02:55 EDT 2002
In the second link below (ending in 2227) is written:
--------------------
In WebRT/html/Ticket/Elements/ShowKeywordSelects
There's:
% my $Keywords =3D $Ticket->KeywordsObj($KeywordSelect->Id);
% while (my $Keyword =3D $Keywords->Next) {
<li>
<% $Keyword->KeywordObj->RelativePath($KeywordSelect->KeywordObj) |n
%></li>
% }
and the output of this will show the entire path.
In my case, ShowKeywordSelects displays:
"Action City: City/Atlanta" instead of just "Action City: Atlanta"
--------------------------
I changed the
$Keyword->KeywordObj->RelativePath($KeywordSelect->KeywordObj) to
$Keyword-KeywordObj->Name, and that fixed the problem. This is in the
display code, rather than the back-end, so it won't break anything
else...
O- ~ARK
> > -----Original Message-----
> > From: rt-users-admin at lists.fsck.com
> > [mailto:rt-users-admin at lists.fsck.com] On Behalf Of billp
> > Sent: Wednesday, August 21, 2002 8: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
>
More information about the rt-users
mailing list