From 5aca1d64e0b8ca2c58c961eb9e04e5d8629ed8ab Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 25 Jan 2013 13:56:04 +0200 Subject: [PATCH] Fix project adding to team --- app/controllers/teams/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/teams/projects_controller.rb b/app/controllers/teams/projects_controller.rb index 27dc93445..e87889b40 100644 --- a/app/controllers/teams/projects_controller.rb +++ b/app/controllers/teams/projects_controller.rb @@ -23,7 +23,7 @@ class Teams::ProjectsController < Teams::ApplicationController # Reject non-allowed projects allowed_project_ids = current_user.owned_projects.map(&:id) - project_ids.select! { |id| allowed_project_ids.include?(id) } + project_ids.select! { |id| allowed_project_ids.include?(id.to_i) } # Assign projects to team user_team.assign_to_projects(project_ids, access) -- 2.11.0