diff options
author | David Lawrence <dkl@mozilla.com> | 2014-03-31 17:12:20 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-03-31 17:12:20 +0200 |
commit | 71927e7ee069c33019780158670df2415ee1ef3b (patch) | |
tree | 49909ccedf89547f444b44d5aa15b6a82f84aa15 /Bugzilla/Flag.pm | |
parent | 8e4cf05adac6aa915c7d38d9a1aa93c0c62127b3 (diff) | |
download | bugzilla-71927e7ee069c33019780158670df2415ee1ef3b.tar.gz bugzilla-71927e7ee069c33019780158670df2415ee1ef3b.tar.xz |
Bug 989650 - backport bug 294021 to bmo/4.2 to allow requestees to set attachment flags even if they don't have editbugs privs
r=glob
Diffstat (limited to 'Bugzilla/Flag.pm')
-rw-r--r-- | Bugzilla/Flag.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm index c3f7a2df7..60da3fb44 100644 --- a/Bugzilla/Flag.pm +++ b/Bugzilla/Flag.pm @@ -849,7 +849,7 @@ sub extract_flags_from_cgi { # Extract a list of existing flag IDs. my @flag_ids = map(/^flag-(\d+)$/ ? $1 : (), $cgi->param()); - return () if (!scalar(@flagtype_ids) && !scalar(@flag_ids)); + return ([], []) unless (scalar(@flagtype_ids) || scalar(@flag_ids)); my (@new_flags, @flags); foreach my $flag_id (@flag_ids) { |