summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorNicoP-S <paetni1@gmail.com>2020-04-04 23:14:32 +0200
committerGitHub <noreply@github.com>2020-04-04 23:14:32 +0200
commita376fb2fab6c58eca15f14266b4531d1133bc58c (patch)
tree6555d2658c9575fa3eddd0f74d4d745edb7d3e4c /models/boards.js
parente47ff25d458a0f7f7e61f9397e1730df21dc5cb7 (diff)
parent06c2ff0904267d69b963384f4f5de0e204378d4e (diff)
downloadwekan-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.js6
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);