]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3091 Fix bug on Derby
authorFabrice Bellingard <bellingard@gmail.com>
Tue, 7 Feb 2012 10:44:15 +0000 (11:44 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Tue, 7 Feb 2012 10:44:15 +0000 (11:44 +0100)
sonar-server/src/main/webapp/WEB-INF/app/controllers/project_controller.rb

index 04107d49e173ad665dbc59894bd4dfc686771136..c486dfd7d2721ecf54d41d8161459ed5d7a855fe 100644 (file)
@@ -152,7 +152,7 @@ class ProjectController < ApplicationController
     snapshots_to_be_deleted = Snapshot.find(:all, :conditions => ["status='U' AND project_id=?", @snapshot.project_id])
     unless snapshots_to_be_deleted.empty?
       conditions << " AND snapshot_id NOT IN (:sids)"
-      values[:sids] = snapshots_to_be_deleted.map {|s| s.id.to_s}
+      values[:sids] = snapshots_to_be_deleted.map {|s| s.id}
     end
 
     category_names=@categories.map { |cat| cat.name }