X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/44034cd78197a48e561104ceafa5b441748fbedf..45a9d9433767938a9d313f745f9459400132704a:/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