The list_bbox_rss won't work at all without a bbox. Thow an error when it's not supplied
This commit is contained in:
parent
b1117365d2
commit
e9ab43cd30
1 changed files with 1 additions and 6 deletions
|
@ -374,12 +374,7 @@ class ChangesetController < ApplicationController
|
|||
elsif params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat']
|
||||
bbox = h(params['minlon']) + ',' + h(params['minlat']) + ',' + h(params['maxlon']) + ',' + h(params['maxlat'])
|
||||
else
|
||||
#TODO: fix bugs in location determination for history tab (and other tabs) then uncomment this redirect
|
||||
#redirect_to :action => 'list'
|
||||
|
||||
# For now just render immediately, and skip the db
|
||||
render
|
||||
return
|
||||
raise OSM::APIBadUserInput.new("Bounding box must be supplied for /history/rss")
|
||||
end
|
||||
|
||||
conditions = conditions_bbox(bbox);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue