X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/59e2349b5a04718fef17e0d8ea18681eb89d3ae8..6c31dbaaec8dcd86682acf404be5f80fc8c0a352:/app/controllers/way_controller.rb diff --git a/app/controllers/way_controller.rb b/app/controllers/way_controller.rb index 4b52ad3f0..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! @@ -77,7 +78,6 @@ class WayController < ApplicationController # if we get here, all is fine, otherwise something will catch below. render :nothing => true - return rescue OSM::APIAlreadyDeletedError render :text => "", :status => :gone rescue OSM::APIPreconditionFailedError