diff options
author | dkl%redhat.com <> | 2009-01-04 05:38:35 +0100 |
---|---|---|
committer | dkl%redhat.com <> | 2009-01-04 05:38:35 +0100 |
commit | 43f03aa4fb7fce809332f05e6d973430a515f960 (patch) | |
tree | 57ab7c995eb739478e53e918cdf6077a23329006 /Bugzilla | |
parent | dd52ea1b9baad23990c47a3186933e63b0cc01bb (diff) | |
download | bugzilla-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')
-rw-r--r-- | Bugzilla/Bug.pm | 4 |
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. |