X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/afb13ad93e30b5d7c8ba39772c5ac6a62603bb77..9cfaeb5460cffcb20422ee3a89d5adf8bdb630bf:/app/controllers/amf_controller.rb diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 94b09c6fc..03b354b6a 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -43,7 +43,6 @@ class AmfController < ApplicationController # Help methods for checking boundary sanity and area size include MapBoundary - session :off before_filter :check_api_writable # Main AMF handlers: process the raw AMF string (using AMF library) and @@ -128,7 +127,7 @@ class AmfController < ApplicationController case message when 'putway'; orn=renumberednodes.dup r=putway(renumberednodes,*args) - renumberednodes=r[4].dup + r[4]=renumberednodes.dup r[4].delete_if { |k,v| orn.has_key?(k) } if r[2] != r[3] then renumberedways[r[2]] = r[3] end results[index]=AMF.putdata(index,r) @@ -589,11 +588,12 @@ class AmfController < ApplicationController # # Returns: # 0. '0' (code for success), - # 1. original way id (unchanged), - # 2. new way id, - # 3. hash of renumbered nodes (old id=>new id), - # 4. way version, - # 5. hash of node versions (node=>version) + # 1. message, + # 2. original way id (unchanged), + # 3. new way id, + # 4. hash of renumbered nodes (old id=>new id), + # 5. way version, + # 6. hash of node versions (node=>version) def putway(renumberednodes, usertoken, changeset_id, wayversion, originalway, pointlist, attributes, nodes, deletednodes) #:doc: amf_handle_error("'putway' #{originalway}") do