X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9fb8f5a84bfa96a299dfd1457c185181f15835d8..e5b5faad7228253147bc489402ef7640b071eaaf:/app/controllers/node_controller.rb diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 4880c46be..a077916ea 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -43,6 +43,7 @@ class NodeController < ApplicationController unless new_node && new_node.id == node.id fail OSM::APIBadUserInput.new("The id in the url (#{node.id}) is not the same as provided in the xml (#{new_node.id})") end + node.update_from(new_node, @user) render :text => node.version.to_s, :content_type => "text/plain" end