Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(groups): add displayname to groups search
Browse files Browse the repository at this point in the history
Iñaki Linaza Argüeso committed May 31, 2024
1 parent ca8f4e4 commit 876bf14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/GroupBackend.php
Original file line number Diff line number Diff line change
@@ -79,6 +79,9 @@ public function getGroups($search = '', $limit = null, $offset = null): array {
$query->where($query->expr()->iLike('gid', $query->createNamedParameter(
'%' . $this->dbc->escapeLikeParameter($search) . '%'
)));
$query->orWhere($query->expr()->iLike('displayname', $query->createNamedParameter(
'%' . $this->dbc->escapeLikeParameter($search) . '%'
)));
}

if ((int)$limit > 0) {

0 comments on commit 876bf14

Please sign in to comment.