X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15d39586276ebe0db617ec1b220063f7123bac60..cbf2dea6117de3eeff2966b9034b0ad6144fe379:/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