diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 96745a27ae6..3289a751583 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8755 \ No newline at end of file +8756 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/Bug.pm b/mozilla/webtools/bugzilla/Bugzilla/Bug.pm index ba941788b3f..4d2421a595d 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Bug.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Bug.pm @@ -2556,6 +2556,10 @@ sub _set_product { OR gcm.othercontrol != ?) )', undef, (@idlist, $product->id, CONTROLMAPNA, CONTROLMAPNA)); $vars{'old_groups'} = Bugzilla::Group->new_from_list($gids); + + # Did we come here from editing multiple bugs? (affects how we + # show optional group changes) + $vars{multiple_bugs} = Bugzilla->cgi->param('id') ? 0 : 1; } if (%vars) { diff --git a/mozilla/webtools/bugzilla/template/en/default/bug/process/verify-new-product.html.tmpl b/mozilla/webtools/bugzilla/template/en/default/bug/process/verify-new-product.html.tmpl index 77471cbcd48..c712ae09ae5 100644 --- a/mozilla/webtools/bugzilla/template/en/default/bug/process/verify-new-product.html.tmpl +++ b/mozilla/webtools/bugzilla/template/en/default/bug/process/verify-new-product.html.tmpl @@ -140,19 +140,64 @@ [% IF optional_groups.size %]

These groups are optional. You can decide to restrict [% terms.bugs %] to one or more of the following groups:
- [% FOREACH group = optional_groups %] - - - -
+ [% IF multiple_bugs %] + [% USE Bugzilla %] + + + + + + + + + + [% FOREACH group = optional_groups %] + + + + + + + + [% END %] + +
Remove
[% terms.bugs %]
from this
group
Add
[% terms.bugs %]
to this
group
Group Name:
+ + + + + [% group.group.description FILTER html %] +
+ [% ELSE %] + [% FOREACH group = optional_groups %] + + + +
+ [% END %] [% END %]

[% END %]