projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c65a3d7
)
actually delete nodes on deleteway (might help)
author
Richard Fairhurst
<richard@systemed.net>
Thu, 23 Apr 2009 12:01:42 +0000
(12:01 +0000)
committer
Richard Fairhurst
<richard@systemed.net>
Thu, 23 Apr 2009 12:01:42 +0000
(12:01 +0000)
app/controllers/amf_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/amf_controller.rb
b/app/controllers/amf_controller.rb
index 6f07fa2c70ec8c3d472c33a47e17028b7e446667..0bc5148a18979f54d489c936e37d1ba0e08c76f7 100644
(file)
--- 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