summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-07-04 22:43:06 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-07-04 22:43:06 +0200
commit77a3c5bc2fe22cf744ba74144532459a46ac5571 (patch)
tree95aa96d887e69288f924255da4bbce1476b5e8ac /template/en/default
parent846ac8ad0ad2668219c10d5805185bed7459ad47 (diff)
downloadbugzilla-77a3c5bc2fe22cf744ba74144532459a46ac5571.tar.gz
bugzilla-77a3c5bc2fe22cf744ba74144532459a46ac5571.tar.xz
Bug 616679: A user with local editcomponents privs should be able to set the grant and request groups to groups the user belongs to only
a=LpSolit
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/admin/flag-type/edit.html.tmpl13
1 files changed, 11 insertions, 2 deletions
diff --git a/template/en/default/admin/flag-type/edit.html.tmpl b/template/en/default/admin/flag-type/edit.html.tmpl
index 8db36e6ed..f44c44d9d 100644
--- a/template/en/default/admin/flag-type/edit.html.tmpl
+++ b/template/en/default/admin/flag-type/edit.html.tmpl
@@ -252,10 +252,19 @@
[% BLOCK group_select %]
<select name="[% selname %]" id="[% selname %]" [%- ' disabled="disabled"' UNLESS can_fully_edit %]>
<option value="">(no group)</option>
+ [% group_found = 0 %]
[% FOREACH group = groups %]
<option value="[% group.name FILTER html %]"
- [% " selected" IF (type.${selname} && type.${selname}.name == group.name) %]>
- [%- group.name FILTER html %]
+ [% IF type.${selname} && type.${selname}.name == group.name %]
+ [% ' selected="selected"' %]
+ [% group_found = 1 %]
+ [% END %]>
+ [%- group.name FILTER html ~%]
+ </option>
+ [% END %]
+ [% IF !group_found && type.${selname} %]
+ <option value="[% type.${selname}.name FILTER html %]" selected="selected">
+ [%- type.${selname}.name FILTER html ~%]
</option>
[% END %]
</select>