diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-10 11:44:07 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-06-10 11:44:07 +0200 |
commit | a636aef585a6e3e6cc628be6952cbec526148d70 (patch) | |
tree | 0fca4ee7b49b3e4628b81db06311f7f7f047894a /lib/private/Group/Database.php | |
parent | 9806dec9b3f985ce8a05c9852064e38fa7b199a5 (diff) | |
download | nextcloud-server-a636aef585a6e3e6cc628be6952cbec526148d70.tar.gz nextcloud-server-a636aef585a6e3e6cc628be6952cbec526148d70.zip |
Allow group search by display name
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Group/Database.php')
-rw-r--r-- | lib/private/Group/Database.php | 3 |
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) |