summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-03-10 14:55:31 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-03-11 14:08:12 +0100
commit8cd52ed36d7b8c6dc9b69dafd6269cdbeb1f6673 (patch)
tree088f8117b3300e1c6ae8beb81d169869c3401bd8 /apps
parentab39be1d111696c9add6185bbace6937afe59d8c (diff)
downloadnextcloud-server-8cd52ed36d7b8c6dc9b69dafd6269cdbeb1f6673.tar.gz
nextcloud-server-8cd52ed36d7b8c6dc9b69dafd6269cdbeb1f6673.zip
Return the correct group casing in sharee api
Diffstat (limited to 'apps')
-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 {