]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/amf_controller.rb
Fixed a problem where rails was setting the ID column to null, which violates the...
[rails.git] / app / controllers / amf_controller.rb
index e701f21702cf25a4596c8bf3216ece223d0936bb..1ee5e9cee2b14beacc1552c409694583dd1075c4 100644 (file)
@@ -490,8 +490,8 @@ class AmfController < ApplicationController
       new_relation.changeset_id = changeset_id
       new_relation.version = version
 
-
-      if id <= 0
+      # NOTE: id or relid here? id doesn't seem to be set above
+      if relid <= 0
         # We're creating the node
         new_relation.create_with_history(user)
       elsif visible