diff options
author | Sunil Joshi <joshi_sunil@in.com> | 2012-11-16 16:14:20 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-16 16:14:20 +0100 |
commit | b3a503abcdb34861e51841a4bf87af044a13acd4 (patch) | |
tree | f91db2227b64c3af986ead64df77cbcb45f2d0f8 /template/en/default/bug | |
parent | faa985d64b2f625a62441231118b6933e09797c2 (diff) | |
download | bugs-b3a503abcdb34861e51841a4bf87af044a13acd4.tar bugs-b3a503abcdb34861e51841a4bf87af044a13acd4.tar.gz bugs-b3a503abcdb34861e51841a4bf87af044a13acd4.tar.bz2 bugs-b3a503abcdb34861e51841a4bf87af044a13acd4.tar.xz bugs-b3a503abcdb34861e51841a4bf87af044a13acd4.zip |
Bug 578762: When moving a bug into another product, the "Verify Bug Group" section should not appear if no groups are applicable
r/a=LpSolit
Diffstat (limited to 'template/en/default/bug')
-rw-r--r-- | template/en/default/bug/process/verify-new-product.html.tmpl | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/template/en/default/bug/process/verify-new-product.html.tmpl b/template/en/default/bug/process/verify-new-product.html.tmpl index 45727901c..77471cbcd 100644 --- a/template/en/default/bug/process/verify-new-product.html.tmpl +++ b/template/en/default/bug/process/verify-new-product.html.tmpl @@ -100,7 +100,25 @@ </table> [% IF verify_bug_groups %] - <h3>Verify [% terms.Bug %] Group</h3> + [% mandatory_groups = [] %] + [% optional_groups = [] %] + + [% FOREACH gid = product.group_controls.keys %] + [% group = product.group_controls.$gid %] + [% NEXT UNLESS group.group.is_active %] + + [% IF group.membercontrol == constants.CONTROLMAPMANDATORY + || (group.othercontrol == constants.CONTROLMAPMANDATORY && !user.in_group(group.group.name)) %] + [% mandatory_groups.push(group) %] + [% ELSIF (group.membercontrol != constants.CONTROLMAPNA && user.in_group(group.group.name)) + || group.othercontrol != constants.CONTROLMAPNA %] + [% optional_groups.push(group) %] + [% END %] + [% END %] + + [% IF old_groups.size || optional_groups.size || mandatory_groups.size %] + <h3>Verify [% terms.Bug %] Group</h3> + [% END %] [% IF old_groups.size %] <p>These groups are not legal for the '[% product.name FILTER html %]' @@ -118,21 +136,6 @@ </p> [% END %] - [% mandatory_groups = [] %] - [% optional_groups = [] %] - - [% FOREACH gid = product.group_controls.keys %] - [% group = product.group_controls.$gid %] - [% NEXT UNLESS group.group.is_active %] - - [% IF group.membercontrol == constants.CONTROLMAPMANDATORY - || (group.othercontrol == constants.CONTROLMAPMANDATORY && !user.in_group(group.group.name)) %] - [% mandatory_groups.push(group) %] - [% ELSIF (group.membercontrol != constants.CONTROLMAPNA && user.in_group(group.group.name)) - || group.othercontrol != constants.CONTROLMAPNA %] - [% optional_groups.push(group) %] - [% END %] - [% END %] [% IF optional_groups.size %] <p>These groups are optional. You can decide to restrict [% terms.bugs %] to |