Convert ring groups to use the new php class.

This commit is contained in:
markjcrane
2015-08-07 14:30:29 -05:00
parent ea13640bbf
commit 7dccb98465

View File

@@ -366,6 +366,9 @@ else {
} //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
//initialize the destinations object
$destination = new destinations;
//pre-populate the form
if (strlen($ring_group_uuid) == 0) { $ring_group_uuid = check_str($_GET["id"]); }
if (strlen($ring_group_uuid) > 0) {
@@ -589,8 +592,8 @@ else {
echo " ".$text['label-timeout_destination']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
//switch_select_destination(select_type, select_label, select_name, select_value, select_style, action);
switch_select_destination("dialplan", "", "ring_group_timeout_action", $ring_group_timeout_action, "", "");
//switch_select_destination("dialplan", "", "ring_group_timeout_action", $ring_group_timeout_action, "", "");
echo $destination->select('dialplan', 'ring_group_timeout_action', $ring_group_timeout_action);
echo " <br />\n";
echo " ".$text['description-timeout_destination']."\n";
echo "</td>\n";