From 873aae642c0a5ec2a1ac4614ce0d7bfd1a788aa3 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Sun, 21 Aug 2005 00:02:38 +0000 Subject: Fix for bug 292022: accepts multiple requestees in the requestee field for a given flag, and creates multiple requests, one per requestee, so that users can request a flag multiple times simultaneously instead of one at a time; r=joel, a=myk --- attachment.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'attachment.cgi') diff --git a/attachment.cgi b/attachment.cgi index fba504690..eec1e0a2e 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -916,7 +916,7 @@ sub insert # and FlagType::validate assume User::match_field has ensured that the # values in the requestee fields are legitimate user email addresses. my $match_status = Bugzilla::User::match_field($cgi, { - '^requestee(_type)?-(\d+)$' => { 'type' => 'single' }, + '^requestee(_type)?-(\d+)$' => { 'type' => 'multi' }, }, MATCH_SKIP_CONFIRM); $vars->{'match_field'} = 'requestee'; @@ -1162,7 +1162,7 @@ sub update # and FlagType::validate assume User::match_field has ensured that the # values in the requestee fields are legitimate user email addresses. Bugzilla::User::match_field($cgi, { - '^requestee(_type)?-(\d+)$' => { 'type' => 'single' } + '^requestee(_type)?-(\d+)$' => { 'type' => 'multi' } }); Bugzilla::Flag::validate($cgi, $bugid, $attach_id); Bugzilla::FlagType::validate($cgi, $bugid, $attach_id); -- cgit v1.2.3-24-g4f1b