From d65541748a1567675f7e75a9f55cc1d3948c74d9 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Sun, 3 Aug 2014 06:43:49 +0000 Subject: [PATCH] Destination Edit: Corrected misplaced HTML tags, remove colon (:) output when not necessary on Actions select box. --- app/destinations/destination_edit.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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";