Commit 501c6be3 authored by Alex Vandiver's avatar Alex Vandiver
Browse files

Merge branch '4.2/graphviz-link-depth' into 4.2-trunk

parents e1fbb34a 785fba4c
......@@ -299,9 +299,12 @@ sub TicketLinks {
}
$args{'Seen'} ||= {};
return $args{'Graph'} if $args{'Seen'}{ $args{'Ticket'}->id }++;
$self->AddTicket( %args );
if ( $args{'Seen'}{ $args{'Ticket'}->id } && $args{'Seen'}{ $args{'Ticket'}->id } <= $args{'CurrentDepth'} ) {
return $args{'Graph'};
} elsif ( ! defined $args{'Seen'}{ $args{'Ticket'}->id } ) {
$self->AddTicket( %args );
}
$args{'Seen'}{ $args{'Ticket'}->id } = $args{'CurrentDepth'};
return $args{'Graph'} if $args{'MaxDepth'} && $args{'CurrentDepth'} >= $args{'MaxDepth'};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment