]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/old_way.rb
api06: Fix normal way and relation uploading (i.e. not as part of a diff).
[rails.git] / app / models / old_way.rb
index cdc0c4717c1df571f8a289c7907a71586e69a9e4..136e647938122d69a83ed5669521dbe4e64f54ec 100644 (file)
@@ -95,6 +95,7 @@ class OldWay < ActiveRecord::Base
     el1['visible'] = self.visible.to_s
     el1['timestamp'] = self.timestamp.xmlschema
     el1['user'] = self.user.display_name if self.user.data_public?
     el1['visible'] = self.visible.to_s
     el1['timestamp'] = self.timestamp.xmlschema
     el1['user'] = self.user.display_name if self.user.data_public?
+    el1['version'] = self.version.to_s
     
     self.old_nodes.each do |nd| # FIXME need to make sure they come back in the right order
       e = XML::Node.new 'nd'
     
     self.old_nodes.each do |nd| # FIXME need to make sure they come back in the right order
       e = XML::Node.new 'nd'