From: lpsolit%gmail.com <> Date: Sun, 25 Jan 2009 15:37:52 +0000 (+0000) Subject: Bug 471461: Incorrect text displayed about groups when a bug is in a product which... X-Git-Tag: bugzilla-3.2.1~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7d805cf1c87caec3ba28df3426d982b5039a954;p=thirdparty%2Fbugzilla.git Bug 471461: Incorrect text displayed about groups when a bug is in a product which has only one group defined, with settings Mandatory/Mandatory - Patch by Frédéric Buclin r=wicked a=LpSolit --- diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 9923f00494..452bb80b55 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -689,22 +689,25 @@ [% BLOCK section_restrict_visibility %] [% RETURN UNLESS bug.groups.size %] - - - -
- - - [% inallgroups = 1 %] - [% inagroup = 0 %] - [% FOREACH group = bug.groups %] - [% SET inallgroups = 0 IF NOT group.ingroup %] - [% SET inagroup = 1 IF group.ison %] - [% NEXT IF group.mandatory %] + [% inallgroups = 1 %] + [% inagroup = 0 %] + [% emitted_description = 0 %] + + [% FOREACH group = bug.groups %] + [% SET inallgroups = 0 IF NOT group.ingroup %] + [% SET inagroup = 1 IF group.ison %] + + [% NEXT IF group.mandatory %] - [% IF NOT emitted_description %] - [% emitted_description = 1 %] + [% IF NOT emitted_description %] + [% emitted_description = 1 %] + + + + + [% "
+ +
Only users in all of the selected groups can view this [% terms.bug %]:
@@ -712,30 +715,33 @@ (Unchecking all boxes makes this a more public [% terms.bug %].)
- [% END %] + [% END %] - [% IF group.ingroup %] - - [% END %] - - -
- [% END %] + [% IF group.ingroup %] + + [% END %] + + +
+ [% END %] - [% IF NOT inallgroups %] - - Only members of a group can change the visibility of [% terms.abug %] for - that group. - -
- [% END %] + [% IF emitted_description %] + [% IF NOT inallgroups %] + Only members of a group can change the visibility of [% terms.abug %] for that group. +
+ [% END %]
" IF NOT inagroup %] + [% END %] - [% IF inagroup %] + [% IF inagroup %] + [% IF NOT emitted_description %] + [% emitted_description = 1 %] + + [% END %] - [% END %] -
@@ -779,8 +785,8 @@
+
+ [% END %] [% END %] [%############################################################################%]