diff options
author | ivan <ivan> | 2009-12-31 13:16:41 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-31 13:16:41 +0000 |
commit | b4b0c7e72d7eaee2fbfc7022022c9698323203dd (patch) | |
tree | ba4cd21399e412c32fe3737eaa8478e3271509f9 /rt/lib/RT/Links_Overlay.pm | |
parent | 2dfda73eeb3eae2d4f894099754794ef07d060dd (diff) |
import rt 3.8.7
Diffstat (limited to 'rt/lib/RT/Links_Overlay.pm')
-rw-r--r-- | rt/lib/RT/Links_Overlay.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/rt/lib/RT/Links_Overlay.pm b/rt/lib/RT/Links_Overlay.pm index 91ac2fcf0..ec23df8bc 100644 --- a/rt/lib/RT/Links_Overlay.pm +++ b/rt/lib/RT/Links_Overlay.pm @@ -1,8 +1,8 @@ # BEGIN BPS TAGGED BLOCK {{{ # # COPYRIGHT: -# -# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC +# +# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC # <jesse@bestpractical.com> # # (Except where explicitly superseded by other copyright notices) @@ -45,6 +45,7 @@ # those contributions and any derivatives thereof. # # END BPS TAGGED BLOCK }}} + =head1 NAME RT::Links - A collection of Link objects @@ -60,11 +61,6 @@ =head1 METHODS -=begin testing - -ok (require RT::Links); - -=end testing =cut @@ -157,6 +153,10 @@ sub Next { my $Link = $self->SUPER::Next(); return $Link unless $Link && ref $Link; + # skip very invalid Link records + unless ($Link->Target && $Link->Base) { + return $self->Next; + } # Skip links to local objects thast are deleted if ( $Link->TargetURI->IsLocal and UNIVERSAL::isa($Link->TargetObj,"RT::Ticket") and $Link->TargetObj->__Value('status') eq "deleted") { |