summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-08-26 19:53:23 +0200
committerlpsolit%gmail.com <>2005-08-26 19:53:23 +0200
commit256ddf6ea4efc587249ddfee13e0a05a028351a7 (patch)
tree31f6d649bf1f00717e02cbe4f1ef29bb55a49739 /Bugzilla
parentedc282351e999c53b18efc5f1d681a8ed84a67aa (diff)
downloadbugzilla-256ddf6ea4efc587249ddfee13e0a05a028351a7.tar.gz
bugzilla-256ddf6ea4efc587249ddfee13e0a05a028351a7.tar.xz
Bug 305771: Cannot create request flags with no requestee - Patch by Myk Melez <myk@mozilla.org> r=LpSolit a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Flag.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm
index 2b70cf2ca..f23c7ec72 100644
--- a/Bugzilla/Flag.pm
+++ b/Bugzilla/Flag.pm
@@ -803,8 +803,9 @@ sub FormToNewFlags {
my $status = $cgi->param("flag_type-$type_id");
trick_taint($status);
- if ($status eq "?") {
- foreach my $login ($cgi->param("requestee_type-$type_id")) {
+ my @logins = $cgi->param("requestee_type-$type_id");
+ if ($status eq "?" && scalar(@logins) > 0) {
+ foreach my $login (@logins) {
my $requestee = new Bugzilla::User(login_to_id($login));
push (@flags, { type => $flag_type ,
target => $target ,