From: Fabrice Bellingard Date: Mon, 2 Jul 2012 13:16:58 +0000 (+0200) Subject: SONAR-3517 Fix issue with Derby X-Git-Tag: 3.2~275 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=430e9f7d2199adad217182575b65d1fa84322db8;p=sonarqube.git SONAR-3517 Fix issue with Derby --- 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!