summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2005-01-09 03:15:46 +0100
committerjocuri%softhome.net <>2005-01-09 03:15:46 +0100
commit24871f00a5079571009d6bf48fe8469cebe8f253 (patch)
tree05979d9cb47c2a555613b53935dd3daed6227484
parentf56b76db0fbf990a3dfef9dfe47ba49cf48ef2b1 (diff)
downloadbugzilla-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-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) " .