Commit d3f1b1a3 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 471461: Incorrect text displayed about groups when a bug is in a product…

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é©ric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
parent b2b03103
...@@ -703,22 +703,25 @@ ...@@ -703,22 +703,25 @@
[% BLOCK section_restrict_visibility %] [% BLOCK section_restrict_visibility %]
[% RETURN UNLESS bug.groups.size %] [% RETURN UNLESS bug.groups.size %]
<table class="bz_group_visibility_section">
<tr>
<td class="field_label">
<label id="bz_restrict_group_visibility_label"><b> Restrict Group Visibility</b>:</label>
</td>
<td>
[% 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 %]
[% IF NOT emitted_description %] [% FOREACH group = bug.groups %]
[% emitted_description = 1 %] [% SET inallgroups = 0 IF NOT group.ingroup %]
[% SET inagroup = 1 IF group.ison %]
[% NEXT IF group.mandatory %]
[% IF NOT emitted_description %]
[% emitted_description = 1 %]
<table class="bz_group_visibility_section">
<tr>
<td class="field_label">
<label id="bz_restrict_group_visibility_label"><b>Restrict Group Visibility</b>:</label>
</td>
<td>
<div id="bz_restrict_group_visibility_help"> <div id="bz_restrict_group_visibility_help">
<b>Only users in all of the selected groups can view this [% terms.bug %]:</b> <b>Only users in all of the selected groups can view this [% terms.bug %]:</b>
<br> <br>
...@@ -726,30 +729,33 @@ ...@@ -726,30 +729,33 @@
(Unchecking all boxes makes this a more public [% terms.bug %].) (Unchecking all boxes makes this a more public [% terms.bug %].)
</small> </small>
</div> </div>
[% END %] [% END %]
[% IF group.ingroup %] [% IF group.ingroup %]
<input type="hidden" name="defined_bit-[% group.bit %]" value="1"> <input type="hidden" name="defined_bit-[% group.bit %]" value="1">
[% END %] [% END %]
<input type="checkbox" value="1" <input type="checkbox" value="1" name="bit-[% group.bit %]" id="bit-[% group.bit %]"
name="bit-[% group.bit %]" id="bit-[% group.bit %]" [% ' checked="checked"' IF group.ison %]
[% " checked=\"checked\"" IF group.ison %] [% ' disabled="disabled"' IF NOT group.ingroup %]>
[% " disabled=\"disabled\"" IF NOT group.ingroup %]> <label for="bit-[% group.bit %]">[% group.description FILTER html_light %]</label>
<label for="bit-[% group.bit %]">[% group.description FILTER html_light %]</label> <br>
<br> [% END %]
[% END %]
[% IF NOT inallgroups %] [% IF emitted_description %]
<b> [% IF NOT inallgroups %]
Only members of a group can change the visibility of [% terms.abug %] for <b>Only members of a group can change the visibility of [% terms.abug %] for that group.</b>
that group. <br>
</b> [% END %]
<br>
[% END %]
</td> </td>
</tr> </tr>
[% "</table>" IF NOT inagroup %]
[% END %]
[% IF inagroup %] [% IF inagroup %]
[% IF NOT emitted_description %]
[% emitted_description = 1 %]
<table class="bz_group_visibility_section">
[% END %]
<tr> <tr>
<td class="field_label"> <td class="field_label">
<label id="bz_enable_role_visibility_label"><b>Enable Role Visibility</b>:</label> <label id="bz_enable_role_visibility_label"><b>Enable Role Visibility</b>:</label>
...@@ -793,8 +799,8 @@ ...@@ -793,8 +799,8 @@
</div> </div>
</td> </td>
</tr> </tr>
[% END %] </table>
</table> [% END %]
[% END %] [% END %]
[%############################################################################%] [%############################################################################%]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment