From a2c01404b88e7b92c582ddd34f585c589fd68fc8 Mon Sep 17 00:00:00 2001 From: "jocuri%softhome.net" <> Date: Sun, 9 Jan 2005 02:14:36 +0000 Subject: [PATCH] =?utf8?q?Patch=20for=20bug=20240250:=20Shouldn't=20receiv?= =?utf8?q?e=20an=20unfriendly=20error=20when=20editing=20groupset=20for=20?= =?utf8?q?a=20product=20that=20doesn't=20exist;=20patch=20by=20Fr=C3=A9d?= =?utf8?q?=C3=A9ric=20Buclin=20,=20r=3Dmkanat,=20a?= =?utf8?q?=3Djustdave.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- editproducts.cgi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editproducts.cgi b/editproducts.cgi index 95f524cebf..8b80cb0d11 100755 --- a/editproducts.cgi +++ b/editproducts.cgi @@ -1277,6 +1277,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) " . -- 2.47.2