mirror of
https://github.com/wekan/wekan.git
synced 2026-01-02 15:48:49 +01:00
Try to fix EasySearch syntax.
Thanks to xet7 !
This commit is contained in:
parent
6f864c5022
commit
5ca84d2930
3 changed files with 4 additions and 5 deletions
|
|
@ -311,5 +311,5 @@ BlazeComponent.extendComponent({
|
|||
}).register('importMapMembersAddPopup');
|
||||
|
||||
Template.importMapMembersAddPopup.helpers({
|
||||
searchIndex: () => Users.search_index,
|
||||
searchIndex: () => UserSearchIndex,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1391,7 +1391,7 @@ BlazeComponent.extendComponent({
|
|||
}).register('addMemberPopup');
|
||||
|
||||
Template.addMemberPopup.helpers({
|
||||
searchIndex: () => Users.search_index,
|
||||
searchIndex: () => UserSearchIndex,
|
||||
})
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
|
|
|
|||
|
|
@ -537,10 +537,9 @@ Users.allow({
|
|||
|
||||
// Search a user in the complete server database by its name, username or emails adress. This
|
||||
// is used for instance to add a new user to a board.
|
||||
const searchInFields = ['username', 'profile.fullname', 'emails.address'];
|
||||
Users.search_index = new Index({
|
||||
UserSearchIndex = new Index({
|
||||
collection: Users,
|
||||
fields: searchInFields,
|
||||
fields: ['username', 'profile.fullname', 'emails.address'],
|
||||
engine: new MongoDBEngine(),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue