From 430e9f7d2199adad217182575b65d1fa84322db8 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Mon, 2 Jul 2012 15:16:58 +0200 Subject: [PATCH] SONAR-3517 Fix issue with Derby --- .../main/webapp/WEB-INF/app/controllers/project_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb index 9a91912b815..b03aebea158 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb @@ -56,7 +56,7 @@ class ProjectController < ApplicationController def update_quality_profile project = get_current_project(params[:id]) - selected_profile = Profile.find(:first, :conditions => {:id => params[:quality_profile]}) + selected_profile = Profile.find(:first, :conditions => {:id => params[:quality_profile].to_i}) if selected_profile && selected_profile.language == project.language project.profile = selected_profile project.save! -- 2.39.5