From ebcccb9e9d424998235f1cdce9c0ddeb2689e6c4 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 16 Nov 2020 13:00:01 -0700 Subject: [PATCH] Fix the distinct syntax issue by removing extension_uuid. --- app/extensions/app_config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/extensions/app_config.php b/app/extensions/app_config.php index ad73a13afb..2c2e0ec61b 100644 --- a/app/extensions/app_config.php +++ b/app/extensions/app_config.php @@ -63,7 +63,7 @@ $apps[$x]['destinations'][$y]['type'] = "sql"; $apps[$x]['destinations'][$y]['label'] = "call_groups"; $apps[$x]['destinations'][$y]['name'] = "extensions"; - $apps[$x]['destinations'][$y]['sql']['pgsql'] = "select extension_uuid, distinct(unnest(string_to_array(call_group, ','))) as destination from v_extensions "; + $apps[$x]['destinations'][$y]['sql']['pgsql'] = "select distinct(unnest(string_to_array(call_group, ','))) as destination from v_extensions "; $apps[$x]['destinations'][$y]['sql']['sqlite'] = "select distinct(call_group) as destination from v_extensions"; $apps[$x]['destinations'][$y]['sql']['mysql'] = "select distinct(call_group) as destination from v_extensions"; $apps[$x]['destinations'][$y]['where'] = "where domain_uuid = '\${domain_uuid}' and call_group <> '' and enabled = 'true' ";