[Rt-devel] Bug - displaying links in searches
Stephen Turner
sturner at MIT.EDU
Mon Jul 17 15:22:11 EDT 2006
With RT 3.4.2, one of our users uncovered a bug with the display of
ticket links (parent/child relationships) in search results.
The problem is that the parent and child links are displayed the
wrong way round - Parent links under the Children column and vice versa.
In addition, the displayed value and URL are the wrong ones. For
example, if ticket 1000 is a parent of 1500, the 'child' link that is
displayed points to 1000 rather than 1500.
The following patch seems to solve both parts of the problem,
although I haven't tested it out thoroughly with all the kinds of RT
relationships.
One more thing I noticed, although it may not be considered a bug, is
that links to deleted tickets are shown.
Steve
--- share/html/Elements/RT__Ticket/ColumnMap 2006-07-17
11:19:08.000000000 -0400
+++ local/html/Elements/RT__Ticket/ColumnMap 2006-07-17
15:05:52.000000000 -0400
@@ -97,6 +97,7 @@
my $type = $RT::Ticket::LINKTYPEMAP{$method}{Type};
my $mode_uri = $mode.'URI';
my $local_type = 'Local'.$mode;
+ $mode = $mode eq 'Base' ? 'Target' : 'Base';
return sub {
map {
More information about the Rt-devel
mailing list