[rt-users] [fsck.com #1285] link URL not shown correct

Bruce Campbell bruce_campbell at ripe.net
Thu Aug 15 09:15:28 EDT 2002


On Thu, 15 Aug 2002, christian janssen wrote:

> Is there already a fix for following problem ?
>
> http://fsck.com/rt2/Ticket/Display.html?id=1285
>
> -- Cite --
> Subject: RT will accept a foreign URL but not display it correctly
>
> RT will accept a foreign URL but not display it correctly
>
> RT allows a ticket to depend on an arbitrary
> URL, such as http://www.yahoo.com/  .  But the URL is
> then displayed as:
>
>    : () []

Ok, one fix for /Ticket/Display.html.  Note that I haven't fixed the same
problem coming from /Ticket/ModifyLinks.html as I don't have time to track
down where the additional passing of arguments is going, but it seems to
work.

-- 
                             Bruce Campbell                            RIPE
                   Systems/Network Engineer                             NCC
                 www.ripe.net - PGP562C8B1B             Operations/Security

--
  /Ticket/Elements/ShowLinksLocalDetail
	<% $LinkFriendly %>:<BR>
	<UL>
	% while (my $Link = $Ticket->$LinkType->Next) {
	%   my $member = $Link->TargetObj;
	%   if( $Link->TargetIsLocal() ){
	  <LI><a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%>
	  [<%$member->Status%>]
	%   }else{

	  <LI><a href="<% $Link->TargetAsHREF %>"><% $Link->TargetAsHREF %></a>

	%   }
	% }
	</UL>

	<%ARGS>
	$Ticket => undef
	$LinkType => undef
	$LinkFriendly => undef
	</%ARGS>
--
  /Ticket/Elements/ShowLinks

	<& /Ticket/Elements/ShowLinksLocalDetail, Ticket => $Ticket, LinkType => "DependsOn", LinkFriendly => "Depends on" &>
	<& /Ticket/Elements/ShowLinksLocalDetail, Ticket => $Ticket, LinkType => "DependedOnBy", LinkFriendly => "Depended on by" &>
	<& /Ticket/Elements/ShowLinksLocalDetail, Ticket => $Ticket, LinkType => "MemberOf", LinkFriendly => "Parents" &>

	Children:<BR>
	<& /Ticket/Elements/ShowMembers, Ticket => $Ticket &>
	<BR>
	<& /Ticket/Elements/ShowLinksLocalDetail, Ticket => $Ticket, LinkType => "RefersTo", LinkFriendly => "Refers to" &>

	Referred to by:<BR>
	<UL>
	% while (my $Link = $Ticket->ReferredToBy->Next) {
	<LI>
	% if ($Link->BaseIsLocal) {
	% my $member = $Link->BaseObj;
	<a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$member->Id%>"><%$member->Id%></a>: (<%$member->OwnerObj->Name%>) <%$member->Subject%> [<%$member->Status%>]<br>
	% } else {
	<A HREF="<%$Link->BaseAsHREF%>"><%$Link->Base%></A>
	%}
	% }
	</UL>

	<%ARGS>
	$Ticket => undef
	</%ARGS>





More information about the rt-users mailing list