GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

Commit 0a99cce9 authored by jplang's avatar jplang

Don't query for each role.

git-svn-id: https://svn.redmine.org/redmine/trunk@15450 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 47143a02
......@@ -31,7 +31,7 @@
</label>
<% Role.givable.sorted.each do |role| %>
<label class="block role_managed_role" style="padding-left:2em;">
<%= check_box_tag 'role[managed_role_ids][]', role.id, @role.managed_roles.include?(role), :id => nil %>
<%= check_box_tag 'role[managed_role_ids][]', role.id, @role.managed_roles.to_a.include?(role), :id => nil %>
<%= role.name %>
</label>
<% end %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment