mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Remove switch_select_destination function from the remaining features that used it and replace with the destination php class.
This commit is contained in:
@@ -259,6 +259,9 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
return;
|
||||
} //end if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
|
||||
|
||||
//initialize the destinations object
|
||||
$destination = new destinations;
|
||||
|
||||
?><script type="text/javascript">
|
||||
<!--
|
||||
function type_onchange(dialplan_detail_type) {
|
||||
@@ -530,10 +533,7 @@ echo "<td class='vncellreq' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$text['label-action_1']."\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", "", "action_1", $action_1, "", "");
|
||||
|
||||
echo $destination->select('dialplan', 'action_1', $action_1);
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
@@ -545,10 +545,7 @@ echo "<td class='vncell' valign='top' align='left' nowrap>\n";
|
||||
echo " ".$text['label-action_2']."\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", "", "action_2", $action_2, "", "");
|
||||
|
||||
echo $destination->select('dialplan', 'action_2', $action_2);
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user