X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9ff462e96cca681a7302f78f5f7e5c576a637c20..6c31dbaaec8dcd86682acf404be5f80fc8c0a352:/app/controllers/way_controller.rb?ds=sidebyside diff --git a/app/controllers/way_controller.rb b/app/controllers/way_controller.rb index 3b6491cf0..a7f74e50c 100644 --- a/app/controllers/way_controller.rb +++ b/app/controllers/way_controller.rb @@ -15,6 +15,7 @@ class WayController < ApplicationController if !way.preconditions_ok? render :text => "", :status => :precondition_failed else + way.version = 0 way.user_id = @user.id way.save_with_history!