mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
correcting 'no custom fields'
This commit is contained in:
parent
bc0aef3332
commit
977bce9eb2
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue