]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4602 Fix regression in settings update
authorJulien HENRY <julien.henry@sonarsource.com>
Tue, 3 Sep 2013 07:57:45 +0000 (09:57 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Tue, 3 Sep 2013 07:57:45 +0000 (09:57 +0200)
sonar-server/src/main/webapp/WEB-INF/app/models/property.rb

index c8d0ab2144299170ae8153565269e22073570fd7..b6faefc36f41d8137c0b1c0e169e2cbaeb5879e4 100644 (file)
@@ -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)