aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-03-26 18:18:38 +0100
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2015-03-26 18:18:38 +0100
commita91e8653a48236e9a55228755455ac5868e059ae (patch)
tree617ed69edb4c323aeacb765a574fed8fe67bc880 /server/sonar-web/src
parenta3bf358944e6245fbf8c69da6a786f4a4620b8a7 (diff)
downloadsonarqube-a91e8653a48236e9a55228755455ac5868e059ae.tar.gz
sonarqube-a91e8653a48236e9a55228755455ac5868e059ae.zip
Fix removal of project/profile association (bad type conversion in Rails)
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb
index d6fadd15b64..f53883b9aa4 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/project_controller.rb
@@ -104,7 +104,7 @@ class ProjectController < ApplicationController
call_backend do
if profile_id.blank?
- Internal.quality_profiles.removeProjectByLanguage(language, project)
+ Internal.quality_profiles.removeProjectByLanguage(language, project.id())
else
profile = Internal.quality_profiles.profile(profile_id.to_i)
Internal.quality_profiles.addProject(profile.key(), project.uuid())