Revert Settings Changes

Move changes to new version 14.2
This commit is contained in:
steve-lad 2021-06-16 07:05:40 +02:00
parent 8c4b0ce240
commit 5e7bdbe40b
4 changed files with 3 additions and 10 deletions

View file

@ -173,7 +173,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
* Generate Input elements in Html Code from sccpgeneral.xml
*/
public function showGroup($group_name, $show_Header, $form_prefix = 'sccp', $form_values = null, $show_inherit = true) {
public function showGroup($group_name, $show_Header, $form_prefix = 'sccp', $form_values = null) {
$htmlret = "";
if (empty($form_values)) {
$form_values = $this->sccpvalues;
@ -186,8 +186,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
'form_prefix' => $form_prefix,
'fvalues' => $form_values,
'tftp_lang' => $this->tftpLang,
'metainfo' => $this->sccp_metainfo,
'inherit' => $show_inherit
'metainfo' => $this->sccp_metainfo
)
);
}

View file

@ -117,7 +117,6 @@ if (!empty($device_warning)) {
echo $this->showGroup('sccp_hw_dev_softkey', 1, 'sccp_hw', $def_val);
// echo $this->showGroup('sccp_hw_dev_pickup', 1, 'sccp_hw', $def_val); This are line properties and does not exist!
echo $this->showGroup('sccp_hw_dev_conference', 1, 'sccp_hw', $def_val);
echo $this->showGroup('sccp_dev_vendor_conf', 1, 'sccp_hw', $def_val, true);
echo $this->showGroup('sccp_hw_dev_network', 1, 'sccp_hw', $def_val);
?>
</form>

View file

@ -376,11 +376,6 @@ foreach ($items as $child) {
$opt_hide .= ' data-vshow="'.$child->option_show.'" data-clshow="'.$child->option_show['class'].'" ';
}
foreach ($child->xpath('button') as $value) {
if (!$inherit) {
if ($value == 'Inherit') {
continue;
}
}
$val_check = strtolower((string)$value[@value]);
if ($val_check == strtolower($res_v)) {
$val_check = " checked";

View file

@ -13,7 +13,7 @@
<?php
echo $this->showGroup('sccp_srst', 1);
echo $this->showGroup('sccp_dev_vendor_conf', 1,'sccp',null,false);
echo $this->showGroup('sccp_dev_vendor_conf', 1);
// echo $this->showGroup('sccp_dev_time',1);
?>