Filtering for tasks
This commit is contained in:
parent
122eadc0de
commit
5b9d2e615b
3 changed files with 20 additions and 2 deletions
server/utils
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue