aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2005-01-09 02:14:36 +0000
committerjocuri%softhome.net <>2005-01-09 02:14:36 +0000
commita2c01404b88e7b92c582ddd34f585c589fd68fc8 (patch)
treef2b6408543aa6ff73402c805c6cd797017e7c6d4 /editproducts.cgi
parentPatch for bug 277303: checksetup.pl shouldn't emit a syntax error when trying... (diff)
downloadbugzilla-a2c01404b88e7b92c582ddd34f585c589fd68fc8.tar.gz
bugzilla-a2c01404b88e7b92c582ddd34f585c589fd68fc8.tar.bz2
bugzilla-a2c01404b88e7b92c582ddd34f585c589fd68fc8.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-xeditproducts.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/editproducts.cgi b/editproducts.cgi
index 95f524ceb..8b80cb0d1 100755
--- a/editproducts.cgi
+++ b/editproducts.cgi
@@ -1277,6 +1277,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) " .