show a 'no bbox specified' message for the moment at least. Due to inconsistent location detecting across tabs, the history tab often gets nil bbox (Need to fix for all tabs) + other history tab tweaks
This commit is contained in:
parent
6167bb6502
commit
0f3e5a28c0
3 changed files with 18 additions and 6 deletions
|
@ -349,9 +349,10 @@ class ChangesetController < ApplicationController
|
|||
if params['bbox']
|
||||
bbox = params['bbox']
|
||||
elsif params['minlon'] and params['minlat'] and params['maxlon'] and params['maxlat']
|
||||
bbox = params['minlon'] + ',' + params['minlat'] + ',' + params['maxlon'] + ',' + params['maxlat']
|
||||
bbox = h(params['minlon']) + ',' + h(params['minlat']) + ',' + h(params['maxlon']) + ',' + h(params['maxlat'])
|
||||
else
|
||||
redirect_to :action => 'list'
|
||||
#TODO: fix bugs in location determination for history tab (and other tabs) then uncomment this redirect
|
||||
#redirect_to :action => 'list'
|
||||
end
|
||||
|
||||
conditions = conditions_bbox(bbox);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue