From b827a32a447ec0b3b1ff1f6bc4245a100c16f764 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 27 Dec 2019 19:33:55 -0700 Subject: [PATCH] Update destination_edit.php --- app/destinations/destination_edit.php | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index cb5611820f..87aebe888b 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -55,7 +55,7 @@ switch ($_GET['type']) { case 'inbound': $destination_type = 'inbound'; break; case 'outbound': $destination_type = 'outbound'; break; - case 'local': $destination_type = 'local'; break; + //case 'local': $destination_type = 'local'; break; default: $destination_type = 'inbound'; } @@ -801,7 +801,7 @@ if (strlen($destination_type) == 0) { $destination_type = 'inbound'; } if (strlen($destination_context) == 0) { $destination_context = 'public'; } if ($destination_type =="outbound") { $destination_context = $_SESSION['domain_name']; } - if ($destination_type =="local") { $destination_context = $_SESSION['domain_name']; } + //if ($destination_type =="local") { $destination_context = $_SESSION['domain_name']; } //create token $object = new token; @@ -843,18 +843,18 @@ echo " document.getElementById('tr_account_code').style.display = '';\n"; echo " document.getElementById('destination_context').value = 'public'"; echo " }\n"; - echo " else if (dir == 'local') {\n"; - echo " if (document.getElementById('tr_caller_id_name')) { document.getElementById('tr_caller_id_name').style.display = 'none'; }\n"; - echo " if (document.getElementById('tr_caller_id_number')) { document.getElementById('tr_caller_id_number').style.display = 'none'; }\n"; - echo " document.getElementById('tr_actions').style.display = '';\n"; - echo " if (document.getElementById('tr_fax_detection')) { document.getElementById('tr_fax_detection').style.display = 'none'; }\n"; - echo " document.getElementById('tr_cid_name_prefix').style.display = 'none';\n"; - echo " if (document.getElementById('tr_sell')) { document.getElementById('tr_sell').style.display = 'none'; }\n"; - echo " if (document.getElementById('tr_buy')) { document.getElementById('tr_buy').style.display = 'none'; }\n"; - echo " if (document.getElementById('tr_carrier')) { document.getElementById('tr_carrier').style.display = 'none'; }\n"; - echo " document.getElementById('tr_account_code').style.display = '';\n"; + //echo " else if (dir == 'local') {\n"; + //echo " if (document.getElementById('tr_caller_id_name')) { document.getElementById('tr_caller_id_name').style.display = 'none'; }\n"; + //echo " if (document.getElementById('tr_caller_id_number')) { document.getElementById('tr_caller_id_number').style.display = 'none'; }\n"; + //echo " document.getElementById('tr_actions').style.display = '';\n"; + //echo " if (document.getElementById('tr_fax_detection')) { document.getElementById('tr_fax_detection').style.display = 'none'; }\n"; + //echo " document.getElementById('tr_cid_name_prefix').style.display = 'none';\n"; + //echo " if (document.getElementById('tr_sell')) { document.getElementById('tr_sell').style.display = 'none'; }\n"; + //echo " if (document.getElementById('tr_buy')) { document.getElementById('tr_buy').style.display = 'none'; }\n"; + //echo " if (document.getElementById('tr_carrier')) { document.getElementById('tr_carrier').style.display = 'none'; }\n"; + //echo " document.getElementById('tr_account_code').style.display = '';\n"; // echo " document.getElementById('destination_context').value = '".$destination_context."'"; - echo " }\n"; + //echo " }\n"; echo " "; echo " }\n"; echo " \n"; @@ -902,11 +902,11 @@ switch ($destination_type) { case "inbound" : $selected[0] = "selected='selected'"; break; case "outbound" : $selected[1] = "selected='selected'"; break; - case "local" : $selected[2] = "selected='selected'"; break; + //case "local" : $selected[2] = "selected='selected'"; break; } echo " \n"; echo " \n"; - echo " \n"; + //echo " \n"; unset($selected); echo " \n"; echo "
\n";