aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/property.rb2
1 files changed, 1 insertions, 1 deletions
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