From 24871f00a5079571009d6bf48fe8469cebe8f253 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sun, 9 Jan 2005 02:15:46 +0000 Subject: Patch for bug 240250: Shouldn't receive an unfriendly error when editing groupset for a product that doesn't exist; patch by Frédéric Buclin , r=mkanat, a=justdave. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editproducts.cgi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editproducts.cgi') diff --git a/editproducts.cgi b/editproducts.cgi index 1437e82f4..e29fd975d 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -1461,6 +1461,8 @@ if ($action eq 'update') { if ($action eq 'editgroupcontrols') { my $product_id = get_product_id($product); + $product_id + || ThrowUserError("invalid_product_name", { product => $product }); # Display a group if it is either enabled or has bugs for this product. SendSQL("SELECT id, name, entry, membercontrol, othercontrol, canedit, " . "isactive, COUNT(bugs.bug_id) " . -- cgit v1.2.3-24-g4f1b