]> git.openstreetmap.org Git - rails.git/commitdiff
actually delete nodes on deleteway (might help)
authorRichard Fairhurst <richard@systemed.net>
Thu, 23 Apr 2009 12:01:42 +0000 (12:01 +0000)
committerRichard Fairhurst <richard@systemed.net>
Thu, 23 Apr 2009 12:01:42 +0000 (12:01 +0000)
app/controllers/amf_controller.rb

index 6f07fa2c70ec8c3d472c33a47e17028b7e446667..0bc5148a18979f54d489c936e37d1ba0e08c76f7 100644 (file)
@@ -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