diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 8032777ac..6654a7310 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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