diff --git a/bims/static/js/views/detail_dashboard/site_detail.js b/bims/static/js/views/detail_dashboard/site_detail.js index 7d6f25920..ec99f518b 100644 --- a/bims/static/js/views/detail_dashboard/site_detail.js +++ b/bims/static/js/views/detail_dashboard/site_detail.js @@ -214,7 +214,7 @@ define([ let newParams = { layers: locationSiteGeoserverLayer, format: 'image/png', - viewparams: 'where:"' + data['sites_raw_query'] + '"' + viewparams: 'where:' + tenant + '."' + data['sites_raw_query'] + '"' }; self.siteLayerSource.updateParams(newParams); self.siteLayerSource.refresh(); diff --git a/bims/static/js/views/detail_dashboard/taxon_detail.js b/bims/static/js/views/detail_dashboard/taxon_detail.js index c29c3c073..a3353747b 100644 --- a/bims/static/js/views/detail_dashboard/taxon_detail.js +++ b/bims/static/js/views/detail_dashboard/taxon_detail.js @@ -457,7 +457,7 @@ define(['backbone', 'shared', 'underscore', 'jquery', 'chartJs', 'fileSaver', 'h let newParams = { layers: locationSiteGeoserverLayer, format: 'image/png', - viewparams: 'where:"' + data['sites_raw_query'] + '"' + viewparams: 'where:' + tenant + '."' + data['sites_raw_query'] + '"' }; this.siteLayerSource.updateParams(newParams); this.siteLayerSource.refresh();