From 5e5cf3ffda374ca9564a5de93fd73695cd1d7735 Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Wed, 16 Jun 2021 07:52:58 +0200 Subject: [PATCH] Remove unused cases in Save Device These Fields do not exist in sccpdevice --- Sccp_manager.class.php | 18 ++---------------- module.xml | 3 ++- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/Sccp_manager.class.php b/Sccp_manager.class.php index cb57a78..87d38e8 100644 --- a/Sccp_manager.class.php +++ b/Sccp_manager.class.php @@ -565,8 +565,10 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO { } function saveSccpDevice($get_settings, $validateonly = false) { + dbug('Settings', $get_settings); $hdr_prefix = 'sccp_hw_'; $hdr_arprefix = 'sccp_hw-ar_'; + $hdr_vendPrefix = 'sccp_hw_vendor'; $save_buttons = array(); $save_settings = array(); @@ -603,22 +605,6 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO { $name_dev = $value; } break; - case 'disallow': - $value = $get_settings['sccp_disallow']; - break; - - case 'allow': - $i = 0; - if (!empty($get_settings['voicecodecs'])) { - foreach ($get_settings['voicecodecs'] as $keycodeс => $valcodeс) { - $save_codec[$i] = $keycodeс; - $i++; - }; - $value = implode(";", $save_codec); - } else { - $value = 'all'; // Bug If not System Codecs - } - break; case 'phonecodepage': $value = 'null'; if (!empty($get_settings[$hdr_prefix . 'devlang'])) { diff --git a/module.xml b/module.xml index eca5e99..cd5c29f 100644 --- a/module.xml +++ b/module.xml @@ -1,7 +1,7 @@ sccp_manager SCCP Manager - 14.2.0.10 + 14.3.0.0 setup SCCP Connectivity Steve Lad, Alex GP @@ -23,6 +23,7 @@ * Version 14.2.0.8 * - Fix uninstaller and create backup * Version 14.2.0.9 * - Bug Fix - incorrect response class for Reset Token Device * Version 14.2.0.10 * - Bug Fix - line not assigned on device creation + * Version 14.3.0.0 * - New Minor Version - Change DB and add new settings https://github.com/chan-sccp/sccp_manager