summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorIgnatzHome <ignatz@maschath.de>2018-05-19 16:23:18 +0200
committerIgnatzHome <ignatz@maschath.de>2018-05-19 16:23:18 +0200
commit977bce9eb2d367220f30d15e5913d62a2d22c8a0 (patch)
treeb08fcfe9be33400daabebbd1c093c851b6683505 /client
parentbc0aef3332ff220c7e3cba640bda69bd72567bfd (diff)
downloadwekan-977bce9eb2d367220f30d15e5913d62a2d22c8a0.tar.gz
wekan-977bce9eb2d367220f30d15e5913d62a2d22c8a0.tar.bz2
wekan-977bce9eb2d367220f30d15e5913d62a2d22c8a0.zip
correcting 'no custom fields'
Diffstat (limited to 'client')
-rw-r--r--client/lib/filter.js10
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;