Merge pull request #598 from FOSSBilling/fix/client-name-lookup

This commit is contained in:
Yağızhan authored and GitHub committed 2022-12-15 21:16:34 +03:00
commit f806ada233
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -32,4 +32,5 @@ npm-debug.log
src/.php-cs-fixer.cache
.vscode
.nova
.php-cs-fixer.cache
+1 -1
View File
@@ -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);