diff options
author | Roeland Douma <rullzer@users.noreply.github.com> | 2016-04-19 20:12:37 +0200 |
---|---|---|
committer | Roeland Douma <rullzer@users.noreply.github.com> | 2016-04-19 20:12:37 +0200 |
commit | 36c43bad53d97ea0db5ded5c7f4dca0942a51300 (patch) | |
tree | e6fc46d93749e81fe37b1d25af3c0696e4ff8cc3 | |
parent | b818e24e2838ff38ed51bc18cac87e08bd3885f4 (diff) | |
parent | 60680cb28cf0e0acf7002b3db3b5a727d92da0a2 (diff) | |
download | nextcloud-server-36c43bad53d97ea0db5ded5c7f4dca0942a51300.tar.gz nextcloud-server-36c43bad53d97ea0db5ded5c7f4dca0942a51300.zip |
Merge pull request #24008 from owncloud/fix_repeating_user_list
Fix repeating user list in webUI
-rw-r--r-- | core/ajax/share.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index dadac4342b2..05e5b4ec302 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -274,13 +274,21 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo $reshare = false; } if ($_GET['checkShares'] == 'true') { - $shares = OCP\Share::getItemShared( + $sharesTMP = OCP\Share::getItemShared( (string)$_GET['itemType'], (string)$_GET['itemSource'], OCP\Share::FORMAT_NONE, null, true ); + $ids = []; + $shares = []; + foreach($sharesTMP as $share) { + if (!isset($ids[$share['id']])) { + $ids[$share['id']] = true; + $shares[] = $share; + } + } } else { $shares = false; } |