Fix dataview problem for bbox with no query rewrite data

Fixes #457
This commit is contained in:
Javier Goizueta 2016-05-18 17:49:09 +02:00
parent 8628d3b671
commit a1e024e228

View File

@ -149,7 +149,9 @@ DataviewBackend.prototype.getDataview = function (mapConfigProvider, user, param
bbox: params.bbox
}
};
queryRewriteData = _.extend(queryRewriteData, { bbox_filter: bbox_filter_definition });
if ( queryRewriteData ) {
queryRewriteData = _.extend(queryRewriteData, { bbox_filter: bbox_filter_definition });
}
}
var dataviewFactory = DataviewFactoryWithOverviews.getFactory(