From 911c525f97fb0601498360b27228ce8797f27ed2 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" Date: Wed, 28 Aug 2002 04:27:21 +0000 Subject: [PATCH] Bug 165080 - Delete product fails with missing column error r=joel x2 --- webtools/bugzilla/editproducts.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webtools/bugzilla/editproducts.cgi b/webtools/bugzilla/editproducts.cgi index 520e46d503ab..5b4c3c24968e 100755 --- a/webtools/bugzilla/editproducts.cgi +++ b/webtools/bugzilla/editproducts.cgi @@ -416,7 +416,7 @@ if ($action eq 'del') { CheckProduct($product); # display some data about the product - SendSQL("SELECT product_id, description, milestoneurl, disallownew + SendSQL("SELECT id, description, milestoneurl, disallownew FROM products WHERE name=" . SqlQuote($product)); my ($product_id, $description, $milestoneurl, $disallownew) = FetchSQLData(); @@ -634,7 +634,7 @@ if ($action eq 'delete') { print "Milestones deleted.
\n"; SendSQL("DELETE FROM products - WHERE product_id=$product_id"); + WHERE id=$product_id"); print "Product '$product' deleted.
\n"; # Added -JMR, 2/16/00