From 749a735472792d9e8a5e77674169872f6a9a50b0 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Thu, 23 Apr 2009 12:01:42 +0000 Subject: [PATCH] actually delete nodes on deleteway (might help) --- app/controllers/amf_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5