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 /process_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 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index ba4b2335b..f27961aef 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -489,8 +489,8 @@ SWITCH: for ($::FORM{'knob'}) { SendSQL("select initialowner from components where program=" . SqlQuote($::FORM{'product'}) . " and value=" . SqlQuote($::FORM{'component'})); - my $newname = FetchOneColumn(); - my $newid = DBNameToIdAndCheck($newname, 1); + my $newid = FetchOneColumn(); + my $newname = DBID_to_name($newid); DoComma(); $::query .= "assigned_to = $newid"; if (Param("useqacontact")) { @@ -498,10 +498,9 @@ SWITCH: for ($::FORM{'knob'}) { SqlQuote($::FORM{'product'}) . " and value=" . SqlQuote($::FORM{'component'})); my $qacontact = FetchOneColumn(); - if (defined $qacontact && $qacontact ne "") { - my $newqa = DBNameToIdAndCheck($qacontact, 1); + if (defined $qacontact && $qacontact != 0) { DoComma(); - $::query .= "qa_contact = $newqa"; + $::query .= "qa_contact = $qacontact"; } } last SWITCH; |