summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authordkl%redhat.com <>2009-01-04 05:38:35 +0100
committerdkl%redhat.com <>2009-01-04 05:38:35 +0100
commit43f03aa4fb7fce809332f05e6d973430a515f960 (patch)
tree57ab7c995eb739478e53e918cdf6077a23329006 /Bugzilla/Bug.pm
parentdd52ea1b9baad23990c47a3186933e63b0cc01bb (diff)
downloadbugzilla-43f03aa4fb7fce809332f05e6d973430a515f960.tar.gz
bugzilla-43f03aa4fb7fce809332f05e6d973430a515f960.tar.xz
Bug 99205: Allow mass-editing of dependencies
Patch by Dave Lawrence <dkl@redhat.com> - r/a=mkanat
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 6399e34a4..cfc01ba7b 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -1156,7 +1156,9 @@ sub _check_dependencies {
my %deps_in = (dependson => $depends_on || '', blocked => $blocks || '');
foreach my $type qw(dependson blocked) {
- my @bug_ids = split(/[\s,]+/, $deps_in{$type});
+ my @bug_ids = ref($deps_in{$type})
+ ? @{$deps_in{$type}}
+ : split(/[\s,]+/, $deps_in{$type});
# Eliminate nulls.
@bug_ids = grep {$_} @bug_ids;
# We do this up here to make sure all aliases are converted to IDs.