summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/api/sharees.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/api/sharees.php b/apps/files_sharing/api/sharees.php
index 28dfd4af955..88cf783b2a1 100644
--- a/apps/files_sharing/api/sharees.php
+++ b/apps/files_sharing/api/sharees.php
@@ -223,10 +223,10 @@ class Sharees {
foreach ($groups as $gid) {
if (strtolower($gid) === $search) {
$this->result['exact']['groups'][] = [
- 'label' => $search,
+ 'label' => $gid,
'value' => [
'shareType' => Share::SHARE_TYPE_GROUP,
- 'shareWith' => $search,
+ 'shareWith' => $gid,
],
];
} else {