fix:add client
gitea/vn-asterisk/pipeline/head There was a failure building this commit Details

This commit is contained in:
David Domenech 2024-03-07 16:57:14 +01:00
parent e8ecfca521
commit dce4afcf0d
1 changed files with 3 additions and 2 deletions

View File

@ -64,10 +64,11 @@ if ($client) {
$extension = $db->getValue(
'SELECT d.pbxQueue
FROM vn.worker w
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
WHERE w.id = #',[$client]
WHERE c.id= #',[$client]
);
if ($extension) {