]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3517 Fix issue with Derby
authorFabrice Bellingard <bellingard@gmail.com>
Mon, 2 Jul 2012 13:16:58 +0000 (15:16 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Mon, 2 Jul 2012 13:17:30 +0000 (15:17 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb

index 9a91912b8156cd8d8131f795e5b3726d63601dc6..b03aebea15899958e9dd75292e025cdd07e12f92 100644 (file)
@@ -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!