summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2002-10-25 12:59:26 +0200
committerbugreport%peshkin.net <>2002-10-25 12:59:26 +0200
commit7d1af605344e93b289e46c9d5520532b6f2cad15 (patch)
tree74e59342af2e8e550c79b379957de26d6a779cf7 /post_bug.cgi
parent80b04d87987037a62e3755beeca519246d99b319 (diff)
downloadbugzilla-7d1af605344e93b289e46c9d5520532b6f2cad15.tar.gz
bugzilla-7d1af605344e93b289e46c9d5520532b6f2cad15.tar.xz
Bug 162990 Shorthand/wildcard entry for login names in assign, cc, qa, fields
patch by not_erik@dasbistro.com r=joel, myk
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi8
1 files changed, 8 insertions, 0 deletions
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.