summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-07-12 02:40:23 +0200
committerlpsolit%gmail.com <>2007-07-12 02:40:23 +0200
commitdc9f2badbb567a3104c72cc148c78cf587f03a43 (patch)
tree3886d8060d06263d630f0809c4ff83982b253f4a
parentc8ade4d646e6eeb2386aaaa852f2d1c0f1ef1653 (diff)
downloadbugzilla-dc9f2badbb567a3104c72cc148c78cf587f03a43.tar.gz
bugzilla-dc9f2badbb567a3104c72cc148c78cf587f03a43.tar.xz
Bug 387705: Single dependency loop detection not working anymore - Patch by Ronaldo Maia <romaia@async.com.br> r/a=LpSolit
-rwxr-xr-xBugzilla/Bug.pm5
1 files changed, 3 insertions, 2 deletions
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'});
}