diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index 2cad835f4b..520c34133c 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -588,19 +588,20 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $order = 10; foreach($dialplan_details as $row) { if ($row["dialplan_detail_type"] == "transfer" || $row["dialplan_detail_type"] == "bridge" || $row["dialplan_detail_type"] == "") { + echo " \n"; + echo " \n"; if (strlen($row['dialplan_detail_uuid']) > 0) { echo " \n"; } echo " \n"; echo " \n"; - echo " \n"; - echo " \n"; //echo $order."
\n"; //switch_select_destination(select_type, select_label, select_name, select_value, select_style, action); $data = $row['dialplan_detail_data']; $label = explode("XML", $data); - $detail_action = $row['dialplan_detail_type'].":".$row['dialplan_detail_data']; + $divider = ($row['dialplan_detail_type'] != '') ? ":" : null; + $detail_action = $row['dialplan_detail_type'].$divider.$row['dialplan_detail_data']; switch_select_destination("dialplan", $label[0], "dialplan_details[".$x."][dialplan_detail_data]", $detail_action, "width: 60%;", $row['dialplan_detail_type']); echo " \n";