diff options
author | bbaetz%student.usyd.edu.au <> | 2002-08-28 13:27:21 +0200 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-08-28 13:27:21 +0200 |
commit | 1eee369e271161e2f7909ce87bfa4c297923d125 (patch) | |
tree | 9bb8207173c389b2435d9f90d27150a4187a1d5f | |
parent | 26f9cef39015907b9347bbdbd07c0bb35edb988e (diff) | |
download | bugzilla-1eee369e271161e2f7909ce87bfa4c297923d125.tar.gz bugzilla-1eee369e271161e2f7909ce87bfa4c297923d125.tar.xz |
Bug 165080 - Delete product fails with missing column error
r=joel x2
-rwxr-xr-x | editproducts.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editproducts.cgi b/editproducts.cgi index 520e46d50..5b4c3c249 100755 --- a/editproducts.cgi +++ b/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.<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 |