Use the new destinations php class for ivr menu and destinations.
This commit is contained in:
@@ -476,6 +476,10 @@ 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") {
|
||||
$destination_uuid = $_GET["id"];
|
||||
@@ -651,8 +655,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
$label = explode("XML", $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']);
|
||||
|
||||
$destination->select('dialplan', 'dialplan_details['.$x.'][dialplan_detail_data]', $detail_action);
|
||||
echo " </td>\n";
|
||||
echo " <td class='list_control_icons' style='width: 25px;'>";
|
||||
if (strlen($row['destination_uuid']) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user