mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 12:18:43 +09:00
Fix missing client name in the activity list (#2901)
Make the SQL query use CONCAT_WS for client name
This commit is contained in:
1 parent
5fe5c727f1
commit
b3d2caa106
1 file changed
+1
-1
@@ -133,7 +133,7 @@ class Service implements InjectionAwareInterface
|
||||
|
||||
public function getSearchQuery($data)
|
||||
{
|
||||
$sql = 'SELECT m.*, a.id as staff_id, a.email as staff_email, a.name as staff_name, CONCAT(c.first_name, " ", c.last_name) as client_name, c.email as client_email
|
||||
$sql = 'SELECT m.*, a.id as staff_id, a.email as staff_email, a.name as staff_name, CONCAT_WS(" ", c.first_name, c.last_name) as client_name, c.email as client_email
|
||||
FROM activity_system as m
|
||||
left join admin as a on a.id = m.admin_id
|
||||
left join client as c on c.id = m.client_id';
|
||||
|
||||
Reference in new issue
Block a user