diff options
| author | jocuri%softhome.net <> | 2005-01-09 02:15:46 +0000 |
|---|---|---|
| committer | jocuri%softhome.net <> | 2005-01-09 02:15:46 +0000 |
| commit | 24871f00a5079571009d6bf48fe8469cebe8f253 (patch) | |
| tree | 05979d9cb47c2a555613b53935dd3daed6227484 /editproducts.cgi | |
| parent | f56b76db0fbf990a3dfef9dfe47ba49cf48ef2b1 (diff) | |
| download | bugs-24871f00a5079571009d6bf48fe8469cebe8f253.tar bugs-24871f00a5079571009d6bf48fe8469cebe8f253.tar.gz bugs-24871f00a5079571009d6bf48fe8469cebe8f253.tar.bz2 bugs-24871f00a5079571009d6bf48fe8469cebe8f253.tar.xz bugs-24871f00a5079571009d6bf48fe8469cebe8f253.zip | |
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.
Diffstat (limited to 'editproducts.cgi')
| -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) " . |
