Remove unused cases in Save Device

These Fields do not exist in sccpdevice
This commit is contained in:
steve-lad 2021-06-16 07:52:58 +02:00
parent 8c4b0ce240
commit 5e5cf3ffda
2 changed files with 4 additions and 17 deletions

View file

@ -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'])) {

View file

@ -1,7 +1,7 @@
<module>
<rawname>sccp_manager</rawname>
<name>SCCP Manager</name>
<version>14.2.0.10</version>
<version>14.3.0.0</version>
<type>setup</type>
<category>SCCP Connectivity</category>
<publisher>Steve Lad, Alex GP</publisher>
@ -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
</changelog>
<location>https://github.com/chan-sccp/sccp_manager</location>
<supported>