]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 165080 - Delete product fails with missing column error
authorbbaetz%student.usyd.edu.au <>
Wed, 28 Aug 2002 11:27:21 +0000 (11:27 +0000)
committerbbaetz%student.usyd.edu.au <>
Wed, 28 Aug 2002 11:27:21 +0000 (11:27 +0000)
r=joel x2

editproducts.cgi

index 520e46d503ab155ffa7f1ce38fd2ed429126f4cc..5b4c3c24968e5324d5ef8700a8b1a53f893d35c6 100755 (executable)
@@ -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.<BR>\n";
 
     SendSQL("DELETE FROM products
-             WHERE product_id=$product_id");
+             WHERE id=$product_id");
     print "Product '$product' deleted.<BR>\n";
 
     # Added -JMR, 2/16/00