Skip to content

Commit

Permalink
Merge pull request #3777 from nextcloud/fix/fix-user-search-by-email
Browse files Browse the repository at this point in the history
Fix user search by email
  • Loading branch information
come-nc authored Nov 19, 2024
2 parents 0ba764c + 5ef8537 commit 9334a6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Model/UserBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,14 @@ public function jsonSerialize(): array {
*
* @return (bool|string|string[])[]
*
* @psalm-return array{userId: string, displayName: string, emailAddress: string, subName: string, subtitle: string, isNoUser: bool, desc: string, type: string, id: string, user: string, organisation: string, languageCode: string, localeCode: string, timeZone: string, icon: string, categories: array<string>}
* @psalm-return array{userId: string, displayName: string, emailAddress: string, subname: string, subtitle: string, isNoUser: bool, desc: string, type: string, id: string, user: string, organisation: string, languageCode: string, localeCode: string, timeZone: string, icon: string, categories: array<string>}
*/
public function getRichUserArray(): array {
return [
'userId' => $this->getId(),
'displayName' => $this->getDisplayName(),
'emailAddress' => $this->getEmailAddress(),
'subName' => $this->getSubName(),
'subname' => $this->getSubName(),
'subtitle' => $this->getDescription(),
'isNoUser' => $this->getIsNoUser(),
'desc' => $this->getDescription(),
Expand Down
1 change: 1 addition & 0 deletions src/js/components/User/UserSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
:options="users"
:multiple="false"
:user-select="true"
:filterable="false"
:tag-width="80"
:limit="30"
:loading="isLoading"
Expand Down

0 comments on commit 9334a6a

Please sign in to comment.