diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php
index e4d7434f7a..ef46bc865b 100644
--- a/app/call_flows/call_flow_edit.php
+++ b/app/call_flows/call_flow_edit.php
@@ -354,6 +354,9 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
} //if ($_POST["persistformvar"] != "true")
} //(count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0)
+//initialize the destinations object
+ $destination = new destinations;
+
//pre-populate the form
if (count($_GET) > 0 && $_POST["persistformvar"] != "true") {
$call_flow_uuid = check_str($_GET["id"]);
@@ -554,7 +557,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
//show the destination list
//switch_select_destination($select_type, $select_label, $select_name, $select_value, $select_style, $action='')
- switch_select_destination("dialplan", $destination_label, "call_flow_destination", $select_value, "", $call_flow_data);
+ //switch_select_destination("dialplan", $destination_label, "call_flow_destination", $select_value, "", $call_flow_data);
+ echo $destination->select('dialplan', 'call_flow_destination', $select_value);
unset($select_value);
echo "
\n";
echo $text['description-destination']."\n";
@@ -577,12 +581,11 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo " ".$text['label-alternate_destination']."\n";
echo "\n";
echo "