You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, as we have a plethora of groups (from LDAP) in our organisation, the combo box for selecting the banner admin group is confusing as it is unsorted. The following trivial patch solves the issue for me, but as I'm no Ruby expert, I'm not sure if it is actually the proper solution:
--- redmine_banner/app/views/global_banner/show.html.erb.orig 2021-02-17 14:29:06.408044166 +0000
+++ redmine_banner/app/views/global_banner/show.html.erb 2021-02-17 14:29:38.424475083 +0000
@@ -95,7 +95,7 @@
<%= content_tag(:label, l(:banner_admin_group, default: 'Banner Admin Group')) %>
<% if User.current.admin? %>
<%= select_tag('setting[banner_admin]',
- options_for_select( Group.givable.pluck(:lastname) << GlobalBanner::GLOBAL_BANNER_ADMIN_GROUP,
+ options_for_select( Group.givable.pluck(:lastname).sort << GlobalBanner::GLOBAL_BANNER_ADMIN_GROUP,
selected: setting['banner_admin'] || GlobalBanner::GLOBAL_BANNER_ADMIN_GROUP )) %>
<br/><%= l(:description_for_banner_admin_group, default: "Specify a group that can manage the global banner without admin rights.") %>
<% else %>
The text was updated successfully, but these errors were encountered:
A really very nice plugin!
However, as we have a plethora of groups (from LDAP) in our organisation, the combo box for selecting the banner admin group is confusing as it is unsorted. The following trivial patch solves the issue for me, but as I'm no Ruby expert, I'm not sure if it is actually the proper solution:
The text was updated successfully, but these errors were encountered: