diff options
author | IgnatzHome <ignatz@maschath.de> | 2018-05-19 16:23:18 +0200 |
---|---|---|
committer | IgnatzHome <ignatz@maschath.de> | 2018-05-19 16:23:18 +0200 |
commit | 977bce9eb2d367220f30d15e5913d62a2d22c8a0 (patch) | |
tree | b08fcfe9be33400daabebbd1c093c851b6683505 /client | |
parent | bc0aef3332ff220c7e3cba640bda69bd72567bfd (diff) | |
download | wekan-977bce9eb2d367220f30d15e5913d62a2d22c8a0.tar.gz wekan-977bce9eb2d367220f30d15e5913d62a2d22c8a0.tar.bz2 wekan-977bce9eb2d367220f30d15e5913d62a2d22c8a0.zip |
correcting 'no custom fields'
Diffstat (limited to 'client')
-rw-r--r-- | client/lib/filter.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/client/lib/filter.js b/client/lib/filter.js index 80793db2..f68c9711 100644 --- a/client/lib/filter.js +++ b/client/lib/filter.js @@ -114,9 +114,15 @@ Filter = { let includeEmptySelectors = false; this._fields.forEach((fieldName) => { const filter = this[fieldName]; - if (filter.subField !== '') fieldName = `${fieldName}.${filter.subField}`; if (filter._isActive()) { - filterSelector[fieldName] = filter._getMongoSelector(); + if (filter.subField !== '') + { + filterSelector[`${fieldName}.${filter.subField}`] = filter._getMongoSelector(); + } + else + { + filterSelector[fieldName] = filter._getMongoSelector(); + } emptySelector[fieldName] = filter._getEmptySelector(); if (emptySelector[fieldName] !== null) { includeEmptySelectors = true; |