Skip to content

Commit

Permalink
Merge pull request #74 from lephisto/master
Browse files Browse the repository at this point in the history
Fix Querybuilder to find Users that have difference uid from displayName
  • Loading branch information
violoncelloCH authored Jun 1, 2019
2 parents e2fb7e4 + 01dd035 commit ccd2b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function getDisplayNames($search = '', $limit = null, $offset = null) {
$query->select('uid', 'displayname')
->from('users_external')
->where($query->expr()->iLike('displayname', $query->createNamedParameter('%' . $connection->escapeLikeParameter($search) . '%')))
->andWhere($query->expr()->iLike('uid', $query->createNamedParameter('%' . $connection->escapeLikeParameter($search) . '%')))
->orWhere($query->expr()->iLike('uid', $query->createNamedParameter('%' . $connection->escapeLikeParameter($search) . '%')))
->andWhere($query->expr()->eq('backend', $query->createNamedParameter($this->backend)));
if ($limit) {
$query->setMaxResults($limit);
Expand Down

0 comments on commit ccd2b22

Please sign in to comment.