[Rt-commit] r3895 - in rt/branches/3.4-RELEASE: . html/Elements/RT__Ticket

alexmv at bestpractical.com alexmv at bestpractical.com
Fri Sep 30 15:19:58 EDT 2005


Author: alexmv
Date: Fri Sep 30 15:19:57 2005
New Revision: 3895

Modified:
   rt/branches/3.4-RELEASE/   (props changed)
   rt/branches/3.4-RELEASE/html/Elements/RT__Ticket/ColumnMap
Log:
 r6555 at zoq-fot-pik:  chmrr | 2005-09-30 15:18:22 -0400
  * Link to the *other* end of the link, not the one that is us


Modified: rt/branches/3.4-RELEASE/html/Elements/RT__Ticket/ColumnMap
==============================================================================
--- rt/branches/3.4-RELEASE/html/Elements/RT__Ticket/ColumnMap	(original)
+++ rt/branches/3.4-RELEASE/html/Elements/RT__Ticket/ColumnMap	Fri Sep 30 15:19:57 2005
@@ -95,15 +95,16 @@
 
     my $mode            = $RT::Ticket::LINKTYPEMAP{$method}{Mode};
     my $type            = $RT::Ticket::LINKTYPEMAP{$method}{Type};
-    my $mode_uri        = $mode.'URI';
-    my $local_type      = 'Local'.$mode;
+    my $other_mode      = ($mode eq "Target" ? "Base" : "Target");
+    my $mode_uri        = $other_mode.'URI';
+    my $local_type      = 'Local'.$other_mode;
 
     return sub {
         map {
             \'<A HREF="',
             $_->$mode_uri->Resolver->HREF,
             \'">',
-            ( $_->$mode_uri->IsLocal ? $_->$local_type : $_->$mode ),
+            ( $_->$mode_uri->IsLocal ? $_->$local_type : $_->$other_mode ),
             \'</A><BR>',
         } @{ $_[0]->Links($mode,$type)->ItemsArrayRef }
     }


More information about the Rt-commit mailing list