]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 162642 - Cannot accept bugs if requiremilestone is on; regression from
authorbbaetz%student.usyd.edu.au <>
Wed, 14 Aug 2002 18:55:24 +0000 (18:55 +0000)
committerbbaetz%student.usyd.edu.au <>
Wed, 14 Aug 2002 18:55:24 +0000 (18:55 +0000)
bug 43600
r=preed x2

process_bug.cgi

index 0a1ff2728aa32d342367cf639bc488132ec4c03f..c4a9af033aff34328109da892a6813529a604383 100755 (executable)
@@ -230,7 +230,7 @@ if ((($::FORM{'id'} && $::FORM{'product'} ne $::oldproduct)
                     $defaults{'target_milestone'} = $::FORM{'target_milestone'};
                 } else {
                     SendSQL("SELECT defaultmilestone FROM products WHERE " .
-                            "product = " . SqlQuote($prod));
+                            "name = " . SqlQuote($prod));
                     $defaults{'target_milestone'} = FetchOneColumn();
                 }
             }
@@ -977,7 +977,7 @@ foreach my $id (@idlist) {
         if (!defined $value || $value eq $::dontchange) {
             $value = $oldhash{'target_milestone'};
         }
-        SendSQL("SELECT defaultmilestone FROM products WHERE product = " .
+        SendSQL("SELECT defaultmilestone FROM products WHERE name = " .
                 SqlQuote($oldhash{'product'}));
         if ($value eq FetchOneColumn()) {
             SendSQL("UNLOCK TABLES");