Commit f77c3e33 authored by dave%intrec.com's avatar dave%intrec.com

Fix for bug 69879: initial owner getting set to NULL if someone was specified on…

Fix for bug 69879: initial owner getting set to NULL if someone was specified on the new bug form. This bug was introduced in the patch for bug 66876 (v1.29 of post_bug.cgi)
parent 62787da0
......@@ -92,13 +92,13 @@ if (!defined $::FORM{'short_desc'} || trim($::FORM{'short_desc'}) eq "") {
PuntTryAgain("You must enter a summary for this bug.");
}
my $forceAssignedOK = 0;
if ($::FORM{'assigned_to'} eq "") {
SendSQL("select initialowner from components where program=" .
SqlQuote($::FORM{'product'}) .
" and value=" . SqlQuote($::FORM{'component'}));
$::FORM{'assigned_to'} = FetchOneColumn();
$forceAssignedOK = 1;
} else {
$::FORM{'assigned_to'} = DBNameToIdAndCheck($::FORM{'assigned_to'});
}
$::FORM{'reporter'} = DBNameToIdAndCheck($::FORM{'reporter'});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment