aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordave%intrec.com <>2001-02-23 09:04:01 +0000
committerdave%intrec.com <>2001-02-23 09:04:01 +0000
commitf77c3e33b6cc2ebb339d4c836d73344e19a28aef (patch)
tree2f1b487b972d7812838d9ba9a5557b6633f4f1f9
parent62787da0ff2e90f39c4f257246cb50f03fc5f4f0 (diff)
downloadbugs-f77c3e33b6cc2ebb339d4c836d73344e19a28aef.tar
bugs-f77c3e33b6cc2ebb339d4c836d73344e19a28aef.tar.gz
bugs-f77c3e33b6cc2ebb339d4c836d73344e19a28aef.tar.bz2
bugs-f77c3e33b6cc2ebb339d4c836d73344e19a28aef.tar.xz
bugs-f77c3e33b6cc2ebb339d4c836d73344e19a28aef.zip
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)
-rwxr-xr-xpost_bug.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index ae1ba4c7c..7bc75ddc1 100755
--- a/post_bug.cgi
+++ b/post_bug.cgi
@@ -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'});