From 7d1af605344e93b289e46c9d5520532b6f2cad15 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Fri, 25 Oct 2002 10:59:26 +0000 Subject: Bug 162990 Shorthand/wildcard entry for login names in assign, cc, qa, fields patch by not_erik@dasbistro.com r=joel, myk --- post_bug.cgi | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index 882bd3dd9..5bc94ca73 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -29,6 +29,8 @@ use lib qw(.); require "CGI.pl"; require "bug_form.pl"; +use Bugzilla::User; + # Shut up misguided -w warnings about "used only once". For some reason, # "use vars" chokes on me when I try it here. sub sillyness { @@ -51,6 +53,12 @@ use vars qw($vars $template); ConnectToDatabase(); my $whoid = confirm_login(); +# do a match on the fields if applicable + +&Bugzilla::User::match_field ({ + 'cc' => { 'type' => 'multi' }, + 'assigned_to' => { 'type' => 'single' }, +}); # The format of the initial comment can be structured by adding fields to the # enter_bug template and then referencing them in the comment template. -- cgit v1.2.3-24-g4f1b