]> 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:15:46 +0000 (02:15 +0000)
committerjocuri%softhome.net <>
Sun, 9 Jan 2005 02:15:46 +0000 (02:15 +0000)
editproducts.cgi

index 1437e82f4e7962442274c3dd292972cd3747df51..e29fd975d21237c321ed87291e7b3894168fe9e4 100755 (executable)
@@ -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) " .