diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-07-04 22:43:06 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-07-04 22:43:06 +0200 |
commit | 77a3c5bc2fe22cf744ba74144532459a46ac5571 (patch) | |
tree | 95aa96d887e69288f924255da4bbce1476b5e8ac /template/en/default | |
parent | 846ac8ad0ad2668219c10d5805185bed7459ad47 (diff) | |
download | bugzilla-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.tmpl | 13 |
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> |