From efb848c102fe1528aea54c3b77219fa72efc1663 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Tue, 3 Sep 2013 09:57:45 +0200 Subject: [PATCH] SONAR-4602 Fix regression in settings update --- 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 c8d0ab21442..b6faefc36f4 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 @@ -176,7 +176,7 @@ class Property < ActiveRecord::Base private def self.setGlobalProperty(key, value, resource_id, user_id) - Api::Utils.java_facade.updateProperty(key, value, resource_id.to_i, user_id.to_i) + Api::Utils.java_facade.updateProperty(key, value, resource_id && resource_id.to_i, user_id && user_id.to_i) end def self.all(key, resource_id=nil, user_id=nil) -- 2.39.5