diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-30 20:21:48 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-30 20:21:48 -0400 |
commit | d66f071d3e41ce81ab80f8edd4688d3adacef96f (patch) | |
tree | ca7c52af86ec19c2e7ce00a69b89e9ad7df0db14 /core/ajax | |
parent | 2f1a990cadc5202dd20c3ec87e886685f6733595 (diff) | |
download | nextcloud-server-d66f071d3e41ce81ab80f8edd4688d3adacef96f.tar.gz nextcloud-server-d66f071d3e41ce81ab80f8edd4688d3adacef96f.zip |
Use search and limit parameters for share with search in sharing dropdown
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/share.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index 41c9e80fd75..3d3436c71fb 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -67,11 +67,11 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['item'] case 'getShareWith': if (isset($_GET['search'])) { $shareWith = array(); - $users = OC_User::getUsers(); + $users = OC_User::getUsers($_GET['search'], 4); foreach ($users as $user) { $shareWith[] = array('label' => $user, 'value' => array('shareType' => OCP\Share::SHARE_TYPE_USER, 'shareWith' => $user)); } - $groups = OC_Group::getGroups(); + $groups = OC_Group::getGroups($_GET['search'], 4); foreach ($groups as $group) { $shareWith[] = array('label' => $group.' (group)', 'value' => array('shareType' => OCP\Share::SHARE_TYPE_GROUP, 'shareWith' => $group)); } |