aboutsummaryrefslogtreecommitdiffstats
path: root/editproducts.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editproducts.cgi')
-rwxr-xr-xeditproducts.cgi2
1 files changed, 2 insertions, 0 deletions
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) " .