summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorterry%netscape.com <>1999-02-04 04:00:12 +0100
committerterry%netscape.com <>1999-02-04 04:00:12 +0100
commit87712bc5dd025157d70cff67376a2092a9cda18f (patch)
tree9a5c7337fd89fb856cb3b91c548c55cd83628f3e /post_bug.cgi
parent8840c4daf10d967440197e03eff0ba0da52dec53 (diff)
downloadbugzilla-87712bc5dd025157d70cff67376a2092a9cda18f.tar.gz
bugzilla-87712bc5dd025157d70cff67376a2092a9cda18f.tar.xz
Allow components to have a default qacontact.
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi16
1 files changed, 16 insertions, 0 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 3ea3b070f..1cff52326 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -79,6 +79,22 @@ $::FORM{'reporter'} = DBNameToIdAndCheck($::FORM{'reporter'});
my @bug_fields = ("reporter", "product", "version", "rep_platform",
"bug_severity", "priority", "op_sys", "assigned_to",
"bug_status", "bug_file_loc", "short_desc", "component");
+
+if (Param("useqacontact")) {
+ SendSQL("select initialqacontact from components where program=" .
+ SqlQuote($::FORM{'product'}) .
+ " and value=" . SqlQuote($::FORM{'component'}));
+ my $qacontact = FetchOneColumn();
+ if (defined $qacontact && $qacontact ne "") {
+ $::FORM{'qa_contact'} = DBNameToIdAndCheck($qacontact, 1);
+ push(@bug_fields, "qa_contact");
+ }
+}
+
+
+
+
+
my $query = "insert into bugs (\n" . join(",\n", @bug_fields) . ",
creation_ts, long_desc )
values (