mirror of
https://github.com/wekan/wekan.git
synced 2026-02-03 07:01:47 +01:00
Fix and update easysearch
This commit is contained in:
parent
3ddb97c8c9
commit
339e044a30
11 changed files with 40 additions and 45 deletions
|
|
@ -1811,13 +1811,7 @@ Template.cardAssigneesPopup.helpers({
|
|||
|
||||
Template.cardAssigneePopup.helpers({
|
||||
userData() {
|
||||
// We need to handle a special case for the search results provided by the
|
||||
// `matteodem:easy-search` package. Since these results gets published in a
|
||||
// separate collection, and not in the standard Meteor.Users collection as
|
||||
// expected, we use a component parameter ("property") to distinguish the
|
||||
// two cases.
|
||||
const userCollection = this.esSearch ? ESSearchResults : Users;
|
||||
return userCollection.findOne(this.userId, {
|
||||
return Users.findOne(this.userId, {
|
||||
fields: {
|
||||
profile: 1,
|
||||
username: 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue