diff options
Diffstat (limited to 'template/en')
-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> |