X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15d39586276ebe0db617ec1b220063f7123bac60..332bcb6b181109d56fc8b30ae78ade3961849a83:/app/controllers/segment_controller.rb diff --git a/app/controllers/segment_controller.rb b/app/controllers/segment_controller.rb index c6d4ad611..a75ff911d 100644 --- a/app/controllers/segment_controller.rb +++ b/app/controllers/segment_controller.rb @@ -22,6 +22,7 @@ class SegmentController < ApplicationController unless segment.preconditions_ok? # are the nodes visible? render :nothing => true, :status => HTTP_PRECONDITION_FAILED + return end if segment.save_with_history