X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f09b16cade5447158606e37ebd6c9cd86fc8b50b..6ae23bed90f249ed943cc43f1bad0e40852f04bb:/app/controllers/relation_controller.rb diff --git a/app/controllers/relation_controller.rb b/app/controllers/relation_controller.rb index 3f185254b..f4e938176 100644 --- a/app/controllers/relation_controller.rb +++ b/app/controllers/relation_controller.rb @@ -15,6 +15,7 @@ class RelationController < ApplicationController if !relation.preconditions_ok? render :text => "", :status => :precondition_failed else + relation.version = 0 relation.user_id = @user.id relation.save_with_history! @@ -31,7 +32,7 @@ class RelationController < ApplicationController def read begin relation = Relation.find(params[:id]) - + response.headers['Last-Modified'] = relation.timestamp.rfc822 if relation.visible render :text => relation.to_xml.to_s, :content_type => "text/xml" else