Yup, that was the additional mod I was looking for. Looks great.
Only caveat: If your keyword can have multiple selections, it will
only display one of them in the queue listing. Fortunately, all
KeywordSelects I want to display are single select only.
thanks!!
billOn Wed, Aug 21, 2002 at 05:30:29PM -0700, Colleen wrote:
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);
Yup, that was the additional mod I was looking for. Looks great.
Only caveat: If your keyword can have multiple selections, it will
only display one of them in the queue listing. Fortunately, all
KeywordSelects I want to display are single select only.
Second caveat: It works for any number of KeywordSelects, however,
it only is useful for GLOBAL Keywords. Meaning if you have the
same KeywordSelect name in multiple queues, you can only specify
a single one of them in the queue listing. (So if you have a
“customer” keyword in two different queues, you can really only
specify one of them in the queue listing – that column for the
tickets that are in the 2nd queue will still show as blank.)
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…