diff --git a/CHANGELOG b/CHANGELOG index b6ca789dd82..b9f7142a868 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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: diff --git a/app/Helpers/SearchHelper.php b/app/Helpers/SearchHelper.php index 31976883ba8..553aad31620 100644 --- a/app/Helpers/SearchHelper.php +++ b/app/Helpers/SearchHelper.php @@ -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;