From: Richard Fairhurst Date: Thu, 23 Apr 2009 12:01:42 +0000 (+0000) Subject: actually delete nodes on deleteway (might help) X-Git-Tag: live~8361 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/749a735472792d9e8a5e77674169872f6a9a50b0 actually delete nodes on deleteway (might help) --- diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 6f07fa2c7..0bc5148a1 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -749,12 +749,13 @@ class AmfController < ApplicationController # delete the way old_way = Way.find(way_id) + u = old_way.unshared_node_ids delete_way = Way.new delete_way.version = way_version delete_way.changeset_id = changeset_id old_way.delete_with_history!(delete_way, user) - old_way.unshared_node_ids.each do |node_id| + u.each do |node_id| # delete the node node = Node.find(node_id) delete_node = Node.new