diff options
author | cyeh%bluemartini.com <> | 2001-02-23 03:11:22 +0100 |
---|---|---|
committer | cyeh%bluemartini.com <> | 2001-02-23 03:11:22 +0100 |
commit | 4560c2324d978970871bfbe6a9480b17a915342f (patch) | |
tree | ea9c3fbfa85e250208178ab599b4bef51418f37f /post_bug.cgi | |
parent | 76dd91d8df6ede4ae5f05036148d996848711c02 (diff) | |
download | bugzilla-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-x | post_bug.cgi | 5 |
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"); } } |