From 95716d702e40a218a8e695b0e9fe6847234b9bfa Mon Sep 17 00:00:00 2001 From: David Domenech Date: Tue, 25 Mar 2025 08:38:03 +0000 Subject: [PATCH] update-incoming-version --- incoming.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/incoming.php b/incoming.php index 44e88dd..70b9832 100755 --- a/incoming.php +++ b/incoming.php @@ -78,9 +78,7 @@ if ($clientId) { $client = $db->getObject( 'SELECT d.pbxQueue, c.id, d.notificationEmail FROM vn.client c - JOIN vn.worker w ON w.id = c.salesPersonFk - JOIN vn.business b ON b.id = w.businessFk - JOIN vn.department d ON d.id = b.departmentFk + JOIN vn.department d ON d.id = c.departmentFk WHERE c.id= #',[$clientId] );