summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-06-11 16:10:34 +0200
committerGitHub <noreply@github.com>2020-06-11 16:10:34 +0200
commitc3267a58c9ede5ad793079f9e2ad414fdf18a562 (patch)
treefd14928b9d3775f2a04559e1e8af40d75a1de464 /lib
parent02e854d64d5bbdec315e23d2f0a6b9520f1381e7 (diff)
parenta636aef585a6e3e6cc628be6952cbec526148d70 (diff)
downloadnextcloud-server-c3267a58c9ede5ad793079f9e2ad414fdf18a562.tar.gz
nextcloud-server-c3267a58c9ede5ad793079f9e2ad414fdf18a562.zip
Merge pull request #21358 from nextcloud/enhancement/search-group-by-displayname
Allow group search by display name
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Group/Database.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php
index ec8f7ea6f53..8e6181a56cd 100644
--- a/lib/private/Group/Database.php
+++ b/lib/private/Group/Database.php
@@ -287,6 +287,9 @@ class Database extends ABackend implements
$query->where($query->expr()->iLike('gid', $query->createNamedParameter(
'%' . $this->dbConn->escapeLikeParameter($search) . '%'
)));
+ $query->orWhere($query->expr()->iLike('displayname', $query->createNamedParameter(
+ '%' . $this->dbConn->escapeLikeParameter($search) . '%'
+ )));
}
$query->setMaxResults($limit)