From dc9f2badbb567a3104c72cc148c78cf587f03a43 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 12 Jul 2007 00:40:23 +0000 Subject: Bug 387705: Single dependency loop detection not working anymore - Patch by Ronaldo Maia r/a=LpSolit --- Bugzilla/Bug.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 1f4ac606f..321220194 100755 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -877,9 +877,10 @@ sub _check_dependencies { $deps_in{$type} = \@bug_ids; } - + # And finally, check for dependency loops. - my %deps = ValidateDependencies($deps_in{dependson}, $deps_in{blocked}); + my $bug_id = ref($invocant) ? $invocant->id : 0; + my %deps = ValidateDependencies($deps_in{dependson}, $deps_in{blocked}, $bug_id); return ($deps{'dependson'}, $deps{'blocked'}); } -- cgit v1.2.3-24-g4f1b