Skip to content

Commit

Permalink
fix: fix incompatibility with PostgreSQL in people search (#2055)
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoAncora authored and asbiin committed Nov 30, 2018
1 parent 139e900 commit 0f076f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ UNRELEASED CHANGES:
* Add ability to create tasks that are not linked to any contacts
* Fix VCard import without firstname
* Fix avatar display in searches
* Fix incompatibility of people search queries with PostgreSQL

RELEASED VERSIONS:

Expand Down
2 changes: 1 addition & 1 deletion app/Helpers/SearchHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function searchContacts($query, $limitPerPage, $order)
]);
})->paginate($limitPerPage);
} else {
$results = Contact::search($needle, $accountId, $limitPerPage, $order, 'and is_partial=0');
$results = Contact::search($needle, $accountId, $limitPerPage, $order, 'AND is_partial = FALSE');
}

return $results;
Expand Down

0 comments on commit 0f076f9

Please sign in to comment.