From 3cf96e72e7485278bf3d51719e935b73af04fdf4 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 6 May 2013 14:31:38 +0800 Subject: Bug 825886: When moving bugs from one product to another, I should be able to keep a security bug private across groups that I'm not a member of --- template/en/default/bug/create/create.html.tmpl | 11 +++++++++-- template/en/default/bug/process/verify-new-product.html.tmpl | 9 ++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'template/en/default') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 7f2087467..786fab551 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -766,7 +766,14 @@ TUI_hide_default('attachment_text_field'); [% END %] - [% IF product.groups_available.size %] + [%# BMO - exclude the default security from from the groups_available %] + [%# list, as it will be added by the BMO extension %] + [% groups_available = [] %] + [% FOREACH group (product.groups_available) %] + [% NEXT IF group.name == product.default_security_group %] + [% groups_available.push(group) %] + [% END %] + [% IF groups_available.size %]   @@ -782,7 +789,7 @@ TUI_hide_default('attachment_text_field'); - [% FOREACH group = product.groups_available %] + [% FOREACH group = groups_available %] These groups are not legal for the '[% product.name FILTER html %]' - product or you are not allowed to restrict [% terms.bugs %] to these groups. - [%+ terms.Bugs %] will no longer be restricted to these groups and may become - public if no other group applies:
+ product or you are not allowed to restrict [% terms.bugs %] to these groups.
+ [%+ terms.Bugs %] will no longer be restricted to these groups and may become + public if no other group applies:
[% FOREACH group = old_groups %] @@ -150,6 +150,9 @@ [% END %] [% END %] + [%# BMO - check the default product sec-group to avoid accidental removal of all groups %] + [% CALL Bugzilla.check_default_product_security_group(product, old_groups, optional_groups) %] + [% IF optional_groups.size %]

These groups are optional. You can decide to restrict [% terms.bugs %] to one or more of the following groups:
-- cgit v1.2.3-24-g4f1b