From: jocuri%softhome.net <> Date: Sun, 9 Jan 2005 02:15:46 +0000 (+0000) Subject: Patch for bug 240250: Shouldn't receive an unfriendly error when editing groupset... X-Git-Tag: bugzilla-2.19.2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24871f00a5079571009d6bf48fe8469cebe8f253;p=thirdparty%2Fbugzilla.git 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. --- diff --git a/editproducts.cgi b/editproducts.cgi index 1437e82f4e..e29fd975d2 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) " .