]> source.dussan.org Git - redmine.git/commitdiff
Merged r15450.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 4 Jun 2016 10:27:30 +0000 (10:27 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 4 Jun 2016 10:27:30 +0000 (10:27 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15451 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/roles/_form.html.erb

index 33fc08d5eb9c2873f352ecde6043c12d6c4f8ec2..84d5de1859792bd90194f29d33c0011110f939fc 100644 (file)
@@ -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 %>