Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-25 15:56:04 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-25 15:56:04 +0400
commit5aca1d64e0b8ca2c58c961eb9e04e5d8629ed8ab (patch)
treef08646ed8d6d7ba402c9b560208ebd1d237b83b6 /app
parent2812e6f1f5a15a5f56ee61001e4a46cd922e827b (diff)
Fix project adding to team
Diffstat (limited to 'app')
-rw-r--r--app/controllers/teams/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/teams/projects_controller.rb b/app/controllers/teams/projects_controller.rb
index 27dc934452f..e87889b4046 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)