Merge pull request #599 from CartoDB/597-overviews-sql_wrap

Queries with sql_wrap should not be rewritten
This commit is contained in:
Javier Goizueta 2016-12-02 15:07:59 +01:00 committed by GitHub
commit 12e272a7e5

View File

@ -33,7 +33,7 @@ MapConfigOverviewsAdapter.prototype.getMapConfig = function(user, requestMapConf
step(
function collectFiltersData() {
var filters, unfiltered_query;
if ( layer.options.source && analysesResults ) {
if ( layer.options.source && analysesResults && !layer.options.sql_wrap) {
var sourceId = layer.options.source.id;
var node = _.find(analysesResults, function(a){ return a.rootNode.params.id === sourceId; });
if ( node ) {