]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Rather than referring how to view a bbox history, just redirect to the global history.
[rails.git] / app / controllers / changeset_controller.rb
index b905ae6632852127f773965a242d2ebfbfeef753..9b09549d0f91def074c5e6bc9065c91cd43072c3 100644 (file)
@@ -348,8 +348,10 @@ class ChangesetController < ApplicationController
     # support 'bbox' param or alternatively 'minlon', 'minlat' etc       
     if params['bbox']
        bbox = params['bbox']
-    elsif params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat']          
+    elsif params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat']
        bbox = params['minlon'] + ',' + params['minlat'] + ',' + params['maxlon'] + ',' + params['maxlat']
+    else
+      redirect_to :action => 'list'
     end
        
     conditions = conditions_bbox(bbox);