From 21dedd475e469de7c8849f7b4b293c8b0587e5d5 Mon Sep 17 00:00:00 2001 From: Dimas Date: Fri, 15 Nov 2024 18:07:06 +0000 Subject: [PATCH] Update view params --- bims/static/js/views/detail_dashboard/site_detail.js | 2 +- bims/static/js/views/detail_dashboard/taxon_detail.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();