Skip to content

Commit b1c6cfa

Browse files
[x]: Add resource_id to datastore_search_Sql
1 parent 48db703 commit b1c6cfa

File tree

1 file changed

+3
-3
lines changed
  • ckanext/dataexplorer/public/vendor/recline

1 file changed

+3
-3
lines changed

ckanext/dataexplorer/public/vendor/recline/recline.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4826,12 +4826,12 @@ this.recline.View = this.recline.View || {};
48264826

48274827
var model_fields = self.model.fields;
48284828
var sql_query = this.jsQueryToSQL(query, model_fields);
4829-
this.extractFile(self, sql_query, format);
4829+
this.extractFile(self, sql_query, format, query);
48304830
},
4831-
extractFile: function (self, sql_query, format) {
4831+
extractFile: function (self, sql_query, format, query={}) {
48324832
var base_path = self.model.attributes.endpoint || self.options.site_url;
48334833
//console.log(base_path);
4834-
var endpoint = `${base_path}/3/action/datastore_search_sql?sql=${sql_query}`; // USE BASE_PATH IN PRODUCTION
4834+
var endpoint = `${base_path}/3/action/datastore_search_sql?sql=${sql_query}&resource_id=${query.resource_id}`; // USE BASE_PATH IN PRODUCTION
48354835
//var endpoint = `https://ckan.nhs.staging.datopian.com/api/3/action/datastore_search_sql?sql=${sql_query}`;
48364836
self.progress();
48374837

0 commit comments

Comments
 (0)