diff options
author | NicoP-S <paetni1@gmail.com> | 2020-04-04 23:14:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-04 23:14:32 +0200 |
commit | a376fb2fab6c58eca15f14266b4531d1133bc58c (patch) | |
tree | 6555d2658c9575fa3eddd0f74d4d745edb7d3e4c /models/boards.js | |
parent | e47ff25d458a0f7f7e61f9397e1730df21dc5cb7 (diff) | |
parent | 06c2ff0904267d69b963384f4f5de0e204378d4e (diff) | |
download | wekan-a376fb2fab6c58eca15f14266b4531d1133bc58c.tar.gz wekan-a376fb2fab6c58eca15f14266b4531d1133bc58c.tar.bz2 wekan-a376fb2fab6c58eca15f14266b4531d1133bc58c.zip |
Merge pull request #3 from wekan/master
Update
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/models/boards.js b/models/boards.js index 8862f301..35ee1a36 100644 --- a/models/boards.js +++ b/models/boards.js @@ -806,7 +806,11 @@ Boards.helpers({ if (term) { const regex = new RegExp(term, 'i'); - query.$or = [{ title: regex }, { description: regex }]; + query.$or = [ + { title: regex }, + { description: regex }, + { customFields: { $elemMatch: { value: regex } } }, + ]; } return Cards.find(query, projection); |