From 7d7ba7dee15e53accc887f9c0256f92d09285865 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Mon, 21 Dec 2020 17:44:46 -0500 Subject: [PATCH] Time condition add missing extension field from destination select query --- app/time_conditions/app_config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/time_conditions/app_config.php b/app/time_conditions/app_config.php index 9bd9a0e8b5..9d2dc4d086 100644 --- a/app/time_conditions/app_config.php +++ b/app/time_conditions/app_config.php @@ -34,7 +34,7 @@ $apps[$x]['destinations'][$y]['type'] = "sql"; $apps[$x]['destinations'][$y]['label'] = "time_conditions"; $apps[$x]['destinations'][$y]['name'] = "time_conditions"; - $apps[$x]['destinations'][$y]['sql'] = "select dialplan_name as name, dialplan_number as destination, dialplan_context as context, dialplan_description as description from v_dialplans "; + $apps[$x]['destinations'][$y]['sql'] = "select dialplan_name as name, dialplan_number as destination, dialplan_number as extension, dialplan_context as context, dialplan_description as description from v_dialplans "; $apps[$x]['destinations'][$y]['where'] = "where (domain_uuid = '\${domain_uuid}' or domain_uuid is null) and app_uuid = '4b821450-926b-175a-af93-a03c441818b1' and dialplan_enabled = 'true' "; $apps[$x]['destinations'][$y]['order_by'] = "dialplan_number asc"; $apps[$x]['destinations'][$y]['field']['context'] = "context";