This commit is contained in:
Carlos Matallín
2017-07-07 17:44:32 +02:00
parent 7fa154c062
commit dd934a3913
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ config/environments/test.js: config.status--test
TEST_SUITE := $(shell find test/{acceptance,integration,unit} -name "*.js")
TEST_SUITE_UNIT := $(shell find test/unit -name "*.js")
TEST_SUITE_INTEGRATION := $(shell find test/integration -name "*.js")
TEST_SUITE_ACCEPTANCE := $(shell find test/acceptance -name "*.js")
TEST_SUITE_ACCEPTANCE := $(shell find test/acceptance/widgets/ported -name "*.js")
test: config/environments/test.js
@echo "***tests***"
+2 -1
View File
@@ -253,7 +253,8 @@ Aggregation.prototype.search = function(psql, userQuery, callback) {
var self = this;
var _userQuery = psql.escapeLiteral('%' + userQuery + '%');
var _value = this.aggregation !== 'count' && this.aggregationColumn ? this.aggregation + '(' + this.aggregationColumn + ')' : 'count(1)';
var _value = this.aggregation !== 'count' && this.aggregationColumn ?
this.aggregation + '(' + this.aggregationColumn + ')' : 'count(1)';
// TODO unfiltered will be wrong as filters are already applied at this point
var query = searchQueryTpl({