X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4ab495f5db90c687574d4e4cee59cf73f79c31c6..1a59ac0d68491ca7d9ad8da2d45853a349ad57a6:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index 01b0f220e..6ef1b9e6f 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -92,17 +92,14 @@ class Node < ActiveRecord::Base node.version = create ? 0 : pt['version'].to_i unless create + raise OSM::APIBadXMLError.new("node", pt, "ID is required when updating.") if pt['id'].nil? if pt['id'] != '0' node.id = pt['id'].to_i end end - # visible if it says it is, or as the default if the attribute - # is missing. - # Don't need to set the visibility, when it is set explicitly in the create/update/delete - #node.visible = pt['visible'].nil? or pt['visible'] == 'true' - # We don't care about the time, as it is explicitly set on create/update/delete + # We don't care about the visibility as it is implicit based on the action tags = []