Commit 55108104 authored by timeless%mozdev.org's avatar timeless%mozdev.org

Bug 190197 AnyEntryGroups() is broken in globals.pl; call from enter_bug.cgi breaks bug entering

patch by jon@vmware.com r=justdave a=justdave
parent 814dd540
......@@ -474,12 +474,15 @@ sub AnyEntryGroups {
$query .= " AND product_id = $product_id" if ($product_id);
$query .= " LIMIT 1";
SendSQL($query);
$::CachedAnyEntryGroups{$product_id} = MoreSQLData();
FetchSQLData();
PopGlobalSQLState();
return $::CachedAnyEntryGroups{$product_id};
if (MoreSQLData()) {
$::CachedAnyEntryGroups{$product_id} = MoreSQLData();
FetchSQLData();
PopGlobalSQLState();
return $::CachedAnyEntryGroups{$product_id};
} else {
return undef;
}
}
#
# This function checks if there are any default groups defined.
# If so, then groups may have to be changed when bugs move from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment