aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-10-08 14:08:06 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-10-08 14:08:06 +0200
commit789437633f4088115c7c426fbc726a7c97b66ccf (patch)
tree24a3374e144b0cbc461e819a80bf8cd46d348989
parent063ca4f39be0a06dd0e60239d9c3305bf0f7c15a (diff)
parentca58ac50a25272fe18ce1015abc75de0af0fa041 (diff)
downloadnextcloud-server-789437633f4088115c7c426fbc726a7c97b66ccf.tar.gz
nextcloud-server-789437633f4088115c7c426fbc726a7c97b66ccf.zip
Merge pull request #11460 from owncloud/fix-10880
implement case-insensitive search for groups in sharing dialog
-rw-r--r--lib/private/group/database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/group/database.php b/lib/private/group/database.php
index e6a5565b20e..8aebefabd27 100644
--- a/lib/private/group/database.php
+++ b/lib/private/group/database.php
@@ -168,7 +168,7 @@ class OC_Group_Database extends OC_Group_Backend {
* Returns a list with all groups
*/
public function getGroups($search = '', $limit = null, $offset = null) {
- $stmt = OC_DB::prepare('SELECT `gid` FROM `*PREFIX*groups` WHERE `gid` LIKE ? ORDER BY `gid` ASC', $limit, $offset);
+ $stmt = OC_DB::prepare('SELECT `gid` FROM `*PREFIX*groups` WHERE LOWER(`gid`) LIKE LOWER(?) ORDER BY `gid` ASC', $limit, $offset);
$result = $stmt->execute(array('%' . $search . '%'));
$groups = array();
while ($row = $result->fetchRow()) {