X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dbf4e326715e64cf7dd1d554a5a2833b6ac0b563..6c31dbaaec8dcd86682acf404be5f80fc8c0a352:/app/controllers/relation_controller.rb diff --git a/app/controllers/relation_controller.rb b/app/controllers/relation_controller.rb index 2b1ba6c75..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!