fix version number return for "modify" sections of diff uploads

This commit is contained in:
Frederik Ramm 2008-11-08 19:43:31 +00:00
parent eebadd141a
commit 79420631ce
4 changed files with 9 additions and 7 deletions

View file

@ -12,9 +12,9 @@
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql
database: openstreetmap
username: openstreetmap
password: openstreetmap
database: osm
username: osm
password: osm
host: localhost
encoding: utf8

View file

@ -60,7 +60,7 @@ Rails::Initializer.run do |config|
# Force all environments to use the same logger level
# (by default production uses :info, the others :debug)
# config.log_level = :debug
config.log_level = :debug
# Your secret key for verifying cookie session data integrity.
# If you change this key, all old sessions will become invalid!

View file

@ -14,4 +14,4 @@ config.action_view.debug_rjs = true
config.action_controller.perform_caching = false
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
config.action_mailer.raise_delivery_errors = false

View file

@ -129,8 +129,10 @@ class DiffReader
xml_result = XML::Node.new model.to_s.downcase
xml_result["old_id"] = old.id.to_s
xml_result["new_id"] = new.id.to_s
xml_result["new_version"] = new.version.to_s
xml_result["new_id"] = new.id.to_s
# version is updated in "old" through the update, so we must not
# return new.version here but old.version!
xml_result["new_version"] = old.version.to_s
result.root << xml_result
end