X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f8de0c1811a21a552541acd2288d191e872ca434..51c5be98f7c10e077d22488434365a626da5a893:/app/controllers/node_controller.rb?ds=sidebyside 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