[Bps-public-commit] rt-extension-linkedticketshistory branch, master, updated. 0.01-2-gb62cc99

? sunnavy sunnavy at bestpractical.com
Wed Nov 6 10:47:14 EST 2013


The branch, master has been updated
       via  b62cc9949f259965479723fb4c49511f5b30738b (commit)
      from  a9c06049da7012d6fe13d780bb231d91973d6ec9 (commit)

Summary of changes:
 html/Callbacks/LinkedTicketsHistory/Ticket/Display.html/AfterShowHistory | 1 +
 1 file changed, 1 insertion(+)

- Log -----------------------------------------------------------------
commit b62cc9949f259965479723fb4c49511f5b30738b
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Nov 6 23:46:05 2013 +0800

    to show tickets only

diff --git a/html/Callbacks/LinkedTicketsHistory/Ticket/Display.html/AfterShowHistory b/html/Callbacks/LinkedTicketsHistory/Ticket/Display.html/AfterShowHistory
index e721834..47af0b8 100644
--- a/html/Callbacks/LinkedTicketsHistory/Ticket/Display.html/AfterShowHistory
+++ b/html/Callbacks/LinkedTicketsHistory/Ticket/Display.html/AfterShowHistory
@@ -13,6 +13,7 @@ for my $type ( @link_types ) {
     my $links = $Ticket->$type;
     while ( my $link = $links->Next ) {
         my $ticket = $type =~ /MemberOf|RefersTo|DependsOn/ ? $link->TargetObj : $link->BaseObj;
+        next unless $ticket->isa('RT::Ticket'); # link could be an article
         push @tickets, $ticket if $ticket->CurrentUserHasRight('ShowTicket');
     }
 }

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list