]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 69879: initial owner getting set to NULL if someone was specified on...
authordave%intrec.com <>
Fri, 23 Feb 2001 09:04:01 +0000 (09:04 +0000)
committerdave%intrec.com <>
Fri, 23 Feb 2001 09:04:01 +0000 (09:04 +0000)
post_bug.cgi

index ae1ba4c7c17ac6713596b14178f50ad363fb4ebc..7bc75ddc16a289097fcb0e3ea6ff80568e690260 100755 (executable)
@@ -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'});