diff options
author | jocuri%softhome.net <> | 2005-01-09 03:15:46 +0100 |
---|---|---|
committer | jocuri%softhome.net <> | 2005-01-09 03:15:46 +0100 |
commit | 24871f00a5079571009d6bf48fe8469cebe8f253 (patch) | |
tree | 05979d9cb47c2a555613b53935dd3daed6227484 | |
parent | f56b76db0fbf990a3dfef9dfe47ba49cf48ef2b1 (diff) | |
download | bugzilla-24871f00a5079571009d6bf48fe8469cebe8f253.tar.gz bugzilla-24871f00a5079571009d6bf48fe8469cebe8f253.tar.xz |
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.
-rwxr-xr-x | editproducts.cgi | 2 |
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) " . |