Bug - displaying links in searches

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 {

Fixed in 3.4.5 and 3.6.On Mon, Jul 17, 2006 at 03:22:11PM -0400, Stephen Turner wrote:

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 {


List info:
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel

Best Practical is hiring! Come hack Perl for us:
http://bestpractical.com/about/jobs.html

At Monday 7/17/2006 03:31 PM, Todd Chapman wrote:

Fixed in 3.4.5 and 3.6.

Thanks Todd-

Steve