Update extensions.php

Remove user_context from v_devices as its redundant when the domain_uuid is also used.
This commit is contained in:
FusionPBX 2024-05-13 14:32:13 -06:00 committed by GitHub
parent 98d5e4fd67
commit 0a4e227706
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -153,7 +153,6 @@
$sql .= " from v_device_lines ";
$sql .= " where domain_uuid = e.domain_uuid ";
$sql .= " and user_id = e.extension ";
$sql .= " and server_address = e.user_context ";
$sql .= " limit 1) ";
$sql .= ") AS device_address, ";
}
@ -166,7 +165,6 @@
$sql .= " from v_device_lines ";
$sql .= " where domain_uuid = e.domain_uuid ";
$sql .= " and user_id = e.extension ";
$sql .= " and server_address = e.user_context ";
$sql .= " limit 1) ";
$sql .= ") AS device_template, ";
}