summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'});
}