From: lpsolit%gmail.com <> Date: Thu, 12 Jul 2007 00:40:23 +0000 (+0000) Subject: Bug 387705: Single dependency loop detection not working anymore - Patch by Ronaldo... X-Git-Tag: bugzilla-3.1.2~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc9f2badbb567a3104c72cc148c78cf587f03a43;p=thirdparty%2Fbugzilla.git Bug 387705: Single dependency loop detection not working anymore - Patch by Ronaldo Maia r/a=LpSolit --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 1f4ac606fc..321220194b 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'}); }