]> source.dussan.org Git - redmine.git/commitdiff
Merged r11510 from trunk.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 1 Mar 2013 16:22:37 +0000 (16:22 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 1 Mar 2013 16:22:37 +0000 (16:22 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@11517 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index 8032777ac074db4e8466e026946515927afcdead..6654a7310092e6685145d2884d49664729ed5e28 100644 (file)
@@ -343,7 +343,7 @@ module ApplicationHelper
   def options_for_membership_project_select(principal, projects)
     options = content_tag('option', "--- #{l(:actionview_instancetag_blank_option)} ---")
     options << project_tree_options_for_select(projects) do |p|
-      {:disabled => principal.projects.include?(p)}
+      {:disabled => principal.projects.to_a.include?(p)}
     end
     options
   end