Filtering for tasks

This commit is contained in:
baldo 2016-06-07 12:45:23 +02:00
parent 122eadc0de
commit 5b9d2e615b
3 changed files with 20 additions and 2 deletions
server/utils

View file

@ -47,6 +47,10 @@ angular.module('ffffng').factory('Resources', function (_, Constraints, Validato
return _.filter(entities, function (entity) {
return _.some(allowedFilterFields, function (field) {
var value = entity[field];
if (_.isNumber(value)) {
value = value.toString();
}
if (!_.isString(value) || _.isEmpty(value)) {
return false;
}