Show only bug groups on product group control page (same as in save procedure)

3col
Vitaliy Filippov 2015-10-05 18:20:55 +03:00
parent 5d7747401f
commit a3ffc5a247
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ if ($action eq 'add')
$vars->{classifications} = [ Bugzilla::Classification->get_all ];
}
$vars->{token} = issue_session_token('add_product');
$vars->{all_groups} = [ Bugzilla::Group->get_all ];
$vars->{all_groups} = Bugzilla::Group->match({isactive => 1, isbuggroup => 1});
$template->process('admin/products/create.html.tmpl', $vars)
|| ThrowTemplateError($template->error());
@ -285,7 +285,7 @@ if ($action eq 'edit' || (!$action && $product_name))
}
$vars->{product} = $product;
$vars->{token} = issue_session_token('edit_product');
$vars->{all_groups} = [ Bugzilla::Group->get_all ];
$vars->{all_groups} = Bugzilla::Group->match({isactive => 1, isbuggroup => 1});
$template->process('admin/products/edit.html.tmpl', $vars)
|| ThrowTemplateError($template->error());