]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4107 Deleting a quality profile leads to removing all associations between...
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Tue, 5 Feb 2013 17:15:59 +0000 (18:15 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Tue, 5 Feb 2013 17:17:58 +0000 (18:17 +0100)
sonar-server/src/main/webapp/WEB-INF/app/models/property.rb

index cff720bfc3f86a07b21740f4c7530e900eae6e48..952bad133ba834af447ae3fde481e40a41c6867f 100644 (file)
@@ -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