diff --git a/.gitignore b/.gitignore index d40e997ae..777611e23 100644 --- a/.gitignore +++ b/.gitignore @@ -32,4 +32,5 @@ npm-debug.log src/.php-cs-fixer.cache .vscode +.nova .php-cs-fixer.cache diff --git a/src/modules/Client/Service.php b/src/modules/Client/Service.php index 1dce749e4..0baf9f648 100644 --- a/src/modules/Client/Service.php +++ b/src/modules/Client/Service.php @@ -211,7 +211,7 @@ class Service implements InjectionAwareInterface public function getPairs($data) { $limit = $this->di['array_get']($data, 'per_page', 30); - [$sql, $params] = $this->getSearchQuery($data, "SELECT c.id, CONCAT(c.first_name, ' ', c.last_name) as full_name"); + [$sql, $params] = $this->getSearchQuery($data, "SELECT c.id, CONCAT_WS('', c.first_name, ' ', c.last_name) as full_name"); $sql = $sql . ' LIMIT ' . $limit; return $this->di['db']->getAssoc($sql, $params);