From fae65972841ba57e3665bc4248637c8b3e95415a Mon Sep 17 00:00:00 2001 From: Yaman Qalieh Date: Sat, 22 Oct 2016 17:10:44 -0400 Subject: [PATCH] search all fields --- hourglass/client/profile/profile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hourglass/client/profile/profile.js b/hourglass/client/profile/profile.js index 7ca6de3..738daee 100644 --- a/hourglass/client/profile/profile.js +++ b/hourglass/client/profile/profile.js @@ -43,11 +43,13 @@ Template.profile.helpers({ rules: [{ token: '', collection: classes, - field: "name", template: Template.classDisplay, filter: { privacy: false, status: true + }, + selector: (match) => { + return {or: [{'name': match}, {'teacher': match}, {'hour': match}]}; } }] };