зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
468cf2c99b
Коммит
56b8319f28
|
@ -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) " .
|
||||
|
|
Загрузка…
Ссылка в новой задаче