mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add call_group filter to SQL query
This commit is contained in:
@@ -915,6 +915,10 @@
|
||||
$sql .= "from v_extensions ";
|
||||
$sql .= "where domain_uuid = :domain_uuid ";
|
||||
$sql .= "and enabled = 'true' ";
|
||||
if (in_array('call_group', $contact_extensions_filter_by)) {
|
||||
$sql .= "and call_group = :call_group ";
|
||||
$parameters['call_group'] = $call_group;
|
||||
}
|
||||
$sql .= "and directory_visible = 'true' ";
|
||||
$sql .= "order by directory_first_name, effective_caller_id_name asc ";
|
||||
$parameters['domain_uuid'] = $domain_uuid;
|
||||
|
||||
Reference in New Issue
Block a user