summaryrefslogtreecommitdiffstats
path: root/process_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 /process_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 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi9
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;