diff options
author | lpsolit%gmail.com <> | 2006-06-19 06:11:59 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-06-19 06:11:59 +0000 |
commit | ccec3de0ed12a612343915b8c5fd2d903cca0408 (patch) | |
tree | d3aed133178000ac030a05948b08f93f60070fe4 /show_bug.cgi | |
parent | Bug 341866: 'changer' in editproducts.cgi must be a user login, not a user ID... (diff) | |
download | bugzilla-ccec3de0ed12a612343915b8c5fd2d903cca0408.tar.gz bugzilla-ccec3de0ed12a612343915b8c5fd2d903cca0408.tar.bz2 bugzilla-ccec3de0ed12a612343915b8c5fd2d903cca0408.zip |
Bug 341924: When viewing several bugs at once using show_bug.cgi?format=multiple, invalid bugs should generate an error message - Patch by Frédéric Buclin <LpSolit@gmail.com> r=timeless a=myk
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-x | show_bug.cgi | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/show_bug.cgi b/show_bug.cgi index 36e325057..578b6a7a8 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -78,8 +78,12 @@ if ($single) { } } else { foreach my $id ($cgi->param('id')) { - my $bug = new Bugzilla::Bug($id, Bugzilla->user->id); - push @bugs, $bug; + # Be kind enough and accept URLs of the form: id=1,2,3. + my @ids = split(/,/, $id); + foreach (@ids) { + my $bug = new Bugzilla::Bug($_, Bugzilla->user->id); + push(@bugs, $bug); + } } } |