Merge pull request #599 from CartoDB/597-overviews-sql_wrap
Queries with sql_wrap should not be rewritten
This commit is contained in:
commit
12e272a7e5
@ -33,7 +33,7 @@ MapConfigOverviewsAdapter.prototype.getMapConfig = function(user, requestMapConf
|
|||||||
step(
|
step(
|
||||||
function collectFiltersData() {
|
function collectFiltersData() {
|
||||||
var filters, unfiltered_query;
|
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 sourceId = layer.options.source.id;
|
||||||
var node = _.find(analysesResults, function(a){ return a.rootNode.params.id === sourceId; });
|
var node = _.find(analysesResults, function(a){ return a.rootNode.params.id === sourceId; });
|
||||||
if ( node ) {
|
if ( node ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user