From 0c535b34a908839bdad2009c44d63b993d51b935 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Wed, 14 Aug 2002 18:55:24 +0000 Subject: Bug 162642 - Cannot accept bugs if requiremilestone is on; regression from bug 43600 r=preed x2 --- process_bug.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/process_bug.cgi b/process_bug.cgi index 0a1ff2728..c4a9af033 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -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"); -- cgit v1.2.3-24-g4f1b