Minor typo corrections and add defaults button to device add/edit

This commit is contained in:
steve-lad 2021-07-09 14:06:25 +02:00
parent ba4dfb2f0d
commit d966bfa303
3 changed files with 8 additions and 5 deletions

View file

@ -172,7 +172,10 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
if (($group_name == 'sccp_general') || ($group_name == 'sccp_qos_config') ||
($group_name =='sccp_dev_config') || ($group_name =='sccp_dev_group_config') ||
($group_name =='sccp_hotline_config') || ($group_name =='sccp_dev_softkey') ||
($group_name =='sccp_dev_advconfig') || $group_name == 'sccp_extpath_config') {
($group_name =='sccp_dev_advconfig') || ($group_name == 'sccp_extpath_config') ||
($group_name =='sccp_dev_vendor_conf') || ($group_name =='sccp_hw_dev_softkey') ||
($group_name =='sccp_hw_dev_advance') || ($group_name =='sccp_hw_dev_conference'))
{
$htmlret = load_view(__DIR__ . '/views/formShowSysDefs.php', array(
'itm' => $item,
'h_show' => $show_Header,

View file

@ -1426,7 +1426,7 @@ and open the template in the editor. Base Version before all crash :-)
<help>Activate the callforward NOANSWER stuff and softkeys. Default is On</help>
</item>
<item type="IS" id="5" seq="99">
<name>dndFeature</name>
<name>dnd</name>
<label>DND Button on Device</label>
<default>off</default>
<button value="on">On</button>
@ -1628,7 +1628,7 @@ and open the template in the editor. Base Version before all crash :-)
<name>directrtp</name>
<label>Direct RTP</label>
<default></default>
<button value="no">NO</button>
<button value="no">No</button>
<button value="Yes">Yes</button>
<help>This option allow devices to do direct RTP sessions (default Off)</help>
</item>
@ -2031,7 +2031,7 @@ and open the template in the editor. Base Version before all crash :-)
<item type="IS" id="5" seq="0">
<name>dnd</name>
<label>DND</label>
<default></default>
<default>Reject</default>
<button value="off">Off</button>
<button value="reject">Reject</button>
<button value="silent">Silent</button>

View file

@ -37,7 +37,7 @@ if (!empty($_REQUEST['new_id'])) {
}
}
//Get default values. Will use these dor a new device, and modify for an existing.
//Get default values. Will use these for a new device, and modify for an existing.
$def_val = $this->getTableDefaults('sccpdevice');
if (!empty($_REQUEST['id'])) {
// Editing an existing Device. Overwrite any defaults that are already set for this device.