Skip to content

Commit efa5f58

Browse files
author
Iñaki Linaza Argüeso
committed
feat(groups): add displayname to groups search
Signed-off-by: Iñaki Linaza Argüeso <[email protected]>
1 parent d22d209 commit efa5f58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/GroupBackend.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public function getGroups($search = '', $limit = null, $offset = null): array {
7979
$query->where($query->expr()->iLike('gid', $query->createNamedParameter(
8080
'%' . $this->dbc->escapeLikeParameter($search) . '%'
8181
)));
82+
$query->orWhere($query->expr()->iLike('displayname', $query->createNamedParameter(
83+
'%' . $this->dbc->escapeLikeParameter($search) . '%'
84+
)));
8285
}
8386

8487
if ((int)$limit > 0) {

0 commit comments

Comments
 (0)