From 24871f00a5079571009d6bf48fe8469cebe8f253 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sun, 9 Jan 2005 02:15:46 +0000 Subject: =?UTF-8?q?Patch=20for=20bug=20240250:=20Shouldn't=20receive=20an?= =?UTF-8?q?=20unfriendly=20error=20when=20editing=20groupset=20for=20a=20p?= =?UTF-8?q?roduct=20that=20doesn't=20exist;=20patch=20by=20Fr=C3=A9d=C3=A9?= =?UTF-8?q?ric=20Buclin=20,=20r=3Dmkanat,=20a=3Djust?= =?UTF-8?q?dave.?= 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.1