From f0e662a2b73e0e9ae70b005e7093c5c27fab24d8 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Tue, 5 Feb 2013 18:15:59 +0100 Subject: [PATCH] SONAR-4107 Deleting a quality profile leads to removing all associations between quality profiles and projects --- sonar-server/src/main/webapp/WEB-INF/app/models/property.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/property.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/property.rb index cff720bfc3f..952bad133ba 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/property.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/property.rb @@ -55,7 +55,7 @@ class Property < ActiveRecord::Base def self.clear_for_resources(key, value=nil) scope = Property.with_resources().with_key(key) if value - scope.with_value(value) + scope = scope.with_value(value) end scope.delete_all end -- 2.39.5