[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.6-56-g066464c
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Thu Oct 29 21:50:53 EDT 2009
The branch, 3.8-trunk has been updated
via 066464c1eec2e5231173b75e26c2c7ce42e1d1c5 (commit)
from 93345dec507c2fd3d529c0b008793df18d6b3b8d (commit)
Summary of changes:
share/html/Ticket/Elements/BulkLinks | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 066464c1eec2e5231173b75e26c2c7ce42e1d1c5
Author: sunnavy <sunnavy at bestpractical.com>
Date: Fri Oct 30 09:25:57 2009 +0800
tweak BulkLinks a bit
diff --git a/share/html/Ticket/Elements/BulkLinks b/share/html/Ticket/Elements/BulkLinks
index 0205766..7f87cef 100755
--- a/share/html/Ticket/Elements/BulkLinks
+++ b/share/html/Ticket/Elements/BulkLinks
@@ -179,7 +179,8 @@ if ( $Tickets && $Tickets->Count ) {
ReferredToBy/ ) {
my $target_or_base =
$type =~ /DependsOn|MemberOf|RefersTo/ ? 'Target' : 'Base';
- next unless $hash{$type};
+ # if $hash{$type} is empty, no need to check any more
+ next unless $hash{$type} && keys %{$hash{$type}};
my %exists;
while ( my $link = $ticket->$type->Next ) {
$exists{$link->$target_or_base}++;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list