From 9237b487bc6c58a6f165131b4628386528470cf7 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Fri, 15 Nov 2024 08:45:45 +0100 Subject: [PATCH] fix subname (manual backport #3777) Signed-off-by: dartcafe --- lib/Model/UserBase.php | 6 +++--- src/components/User/UserSearch.vue | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Model/UserBase.php b/lib/Model/UserBase.php index 5c48ac696..3086b4473 100644 --- a/lib/Model/UserBase.php +++ b/lib/Model/UserBase.php @@ -159,7 +159,7 @@ public function getLocaleCode(): string { return $this->localeCode; } - + public function getTimeZone(): DateTimeZone { if ($this->timeZoneName) { return new DateTimeZone($this->timeZoneName); @@ -304,7 +304,7 @@ public function getRichUserArray(): array { 'userId' => $this->getId(), 'displayName' => $this->getDisplayName(), 'emailAddress' => $this->getEmailAddress(), - 'subName' => $this->getSubName(), + 'subname' => $this->getSubName(), 'subtitle' => $this->getDescription(), 'isNoUser' => $this->getIsNoUser(), 'desc' => $this->getDescription(), @@ -334,7 +334,7 @@ protected function getSimpleUserArray(): array { 'emailAddress' => $this->getSafeEmailAddress(), 'isNoUser' => $this->getIsNoUser(), 'type' => $this->getSafeType(), - 'subName' => null, + 'subname' => null, 'subtitle' => null, 'desc' => null, 'organisation' => null, diff --git a/src/components/User/UserSearch.vue b/src/components/User/UserSearch.vue index b8a5f9af6..2ebf01160 100644 --- a/src/components/User/UserSearch.vue +++ b/src/components/User/UserSearch.vue @@ -41,7 +41,7 @@ }, 250) async function clickAdd(user: User) { - Logger.debug('Adding share clicAdd', user) + Logger.debug('Adding share clicAdd', user) try { await sharesStore.add(user) } catch { @@ -60,6 +60,7 @@ :tag-width="80" :limit="30" :loading="isLoading" + :filterable="false" :searchable="true" :placeholder="placeholder" :close-on-select="false"