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.

This commit is contained in:
jocuri%softhome.net 2005-01-08 18:15:46 +00:00
Родитель 468cf2c99b
Коммит 56b8319f28
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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) " .