X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b91b514cf22f04910c83b6dcc254908ed37d7413..2a20c57a8e642c1117be2a608faaa91597b25726:/app/models/old_node.rb diff --git a/app/models/old_node.rb b/app/models/old_node.rb index 8b3ba784b..91b5a1a8e 100644 --- a/app/models/old_node.rb +++ b/app/models/old_node.rb @@ -61,7 +61,7 @@ class OldNode < ActiveRecord::Base clear_aggregation_cache clear_association_cache #ok from here - @attributes.update(OldNode.find(:first, :conditions => ['id = ? AND timestamp = ?', self.id, self.timestamp]).instance_variable_get('@attributes')) + @attributes.update(OldNode.find(:first, :conditions => ['id = ? AND timestamp = ? AND version = ?', self.id, self.timestamp, self.version]).instance_variable_get('@attributes')) self.tags.each do |k,v| tag = OldNodeTag.new