aboutsummaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to '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'});