X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9fb8f5a84bfa96a299dfd1457c185181f15835d8..fe77d0daa1047767e374494063073d46a059f0b2:/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