Commit 24871f00 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 240250: Shouldn't receive an unfriendly error when editing…

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 <LpSolit@netscape.net>, r=mkanat, a=justdave.
parent f56b76db
......@@ -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) " .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment