rt 4.0.23
[freeside.git] / rt / share / html / Ticket / Elements / BulkLinks
index b97270e..f676fc0 100755 (executable)
@@ -2,7 +2,7 @@
 %#
 %# COPYRIGHT:
 %#
-%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC
+%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
 %#                                          <sales@bestpractical.com>
 %#
 %# (Except where explicitly superseded by other copyright notices)
@@ -163,7 +163,7 @@ $Tickets => undef
 <%INIT>
 my %hash;
 if ( $Tickets && $Tickets->Count ) {
-    my $first_ticket = $Tickets->Next;
+    my $first_ticket = $Tickets->Next or last; #avoid errors on bulk delete
     # we only show current links that eixst on all the tickets
     for my $type ( qw/DependsOn DependedOnBy Members MemberOf RefersTo
             ReferredToBy/ ) {