From c9237a3583ac5720edce034f6bee1f248539191c Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Tue, 13 Jan 2009 08:37:58 +0000 Subject: [PATCH 1/1] swap way write with node deletion as per dev@ --- app/controllers/amf_controller.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/controllers/amf_controller.rb b/app/controllers/amf_controller.rb index 935746ed4..2b21221c0 100644 --- a/app/controllers/amf_controller.rb +++ b/app/controllers/amf_controller.rb @@ -397,6 +397,14 @@ class AmfController < ApplicationController nodes.push(id) end + # -- Save revised way + + way.tags = attributes + way.nds = nodes + way.user_id = uid + way.visible = true + way.save_with_history! + # -- Delete any unique nodes uniques.each do |n| @@ -408,14 +416,6 @@ class AmfController < ApplicationController node.save_with_history! end - # -- Save revised way - - way.tags = attributes - way.nds = nodes - way.user_id = uid - way.visible = true - way.save_with_history! - [0, originalway, way.id, renumberednodes] end -- 2.43.2