]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 240250: Shouldn't receive an unfriendly error when editing groupset...
authorjocuri%softhome.net <>
Sun, 9 Jan 2005 02:14:36 +0000 (02:14 +0000)
committerjocuri%softhome.net <>
Sun, 9 Jan 2005 02:14:36 +0000 (02:14 +0000)
editproducts.cgi

index 95f524cebfa9bac638327a064b654f8537fa2a45..8b80cb0d11f6b616c40ee3636b2c65ba311fb927 100755 (executable)
@@ -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) " .