summaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2001-02-23 03:11:22 +0100
committercyeh%bluemartini.com <>2001-02-23 03:11:22 +0100
commit4560c2324d978970871bfbe6a9480b17a915342f (patch)
treeea9c3fbfa85e250208178ab599b4bef51418f37f /post_bug.cgi
parent76dd91d8df6ede4ae5f05036148d996848711c02 (diff)
downloadbugzilla-4560c2324d978970871bfbe6a9480b17a915342f.tar.gz
bugzilla-4560c2324d978970871bfbe6a9480b17a915342f.tar.xz
fix for 66876: Using userids (mediumint) for initialowner and initialqacontact
based on patch submitted by baulig@suse.de (Martin Baulig).
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi5
1 files changed, 2 insertions, 3 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index a9878ba6a..ae1ba4c7c 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -101,7 +101,6 @@ if ($::FORM{'assigned_to'} eq "") {
$forceAssignedOK = 1;
}
-$::FORM{'assigned_to'} = DBNameToIdAndCheck($::FORM{'assigned_to'}, $forceAssignedOK);
$::FORM{'reporter'} = DBNameToIdAndCheck($::FORM{'reporter'});
@@ -115,8 +114,8 @@ if (Param("useqacontact")) {
SqlQuote($::FORM{'product'}) .
" and value=" . SqlQuote($::FORM{'component'}));
my $qacontact = FetchOneColumn();
- if (defined $qacontact && $qacontact ne "") {
- $::FORM{'qa_contact'} = DBNameToIdAndCheck($qacontact, 1);
+ if (defined $qacontact && $qacontact != 0) {
+ $::FORM{'qa_contact'} = $qacontact;
push(@bug_fields, "qa_contact");
}
}