]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Merge potlatch_010 branch to head.
[rails.git] / app / models / way.rb
index 958944200df628054c67c6c0eb8e60105d99bb38..45789dabe4bf5c03aff02482f6855678620f2427 100644 (file)
@@ -235,6 +235,8 @@ class Way < ActiveRecord::Base
 
   # delete a way and it's nodes that aren't part of other ways, with history
   def delete_with_relations_and_nodes_and_history(user)
+    node_ids_to_delete = node_ids - node_ids_not_to_delete
+
     # delete the nodes not used by other ways
     self.unshared_node_ids.each do |node_id|
       n = Node.find(node_id)