search all fields

This commit is contained in:
Yaman Qalieh 2016-10-22 17:10:44 -04:00
parent aa4efb54c2
commit fae6597284

View File

@ -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}]};
}
}]
};