]> source.dussan.org Git - sonarqube.git/commitdiff
Fix POST /api/properties on embedded database
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 19 Mar 2012 15:17:46 +0000 (16:17 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 19 Mar 2012 15:17:46 +0000 (16:17 +0100)
sonar-server/src/main/webapp/WEB-INF/app/models/property.rb

index 4e407a906fe2ad01a1b9d30aa51c98cefbcd2282..8e6c6805d4948be4db6f42de4e9d69806d6e7eb0 100644 (file)
@@ -54,10 +54,9 @@ class Property < ActiveRecord::Base
     if prop.valid?
       Property.transaction do
         Property.delete_all('prop_key' => key, 'resource_id' => resource_id, 'user_id' => nil)
-        if prop.save
-          reload_java_configuration
-        end
+        prop.save
       end
+      reload_java_configuration
     end
     prop
   end