Fixed default value for own_filter

This commit is contained in:
Daniel García Aubert 2017-10-20 16:47:56 +02:00
parent 0c9d60b573
commit 00f81db57e

View File

@ -65,10 +65,10 @@ DataviewBackend.prototype.getDataview = function (mapConfigProvider, user, param
function getDaviewQuery(dataviewDefinition, ownFilter) {
if (ownFilter === -1) {
return dataviewDefinition.sql.no_filters;
} else if (ownFilter === 0) {
return dataviewDefinition.sql.own_filter_off;
} else if (ownFilter === 1) {
return dataviewDefinition.sql.own_filter_on;
} else {
return dataviewDefinition.sql.own_filter_off;
}
}