Fix missing client name in the activity list (#2901)

Make the SQL query use CONCAT_WS for client name
This commit is contained in:
Yağızhan authored and GitHub committed 2025-09-13 02:36:34 +03:00
1 parent 5fe5c727f1
commit b3d2caa106
1 file changed
+1 -1
+1 -1
View File
@@ -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';