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') || if (($group_name == 'sccp_general') || ($group_name == 'sccp_qos_config') ||
($group_name =='sccp_dev_config') || ($group_name =='sccp_dev_group_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_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( $htmlret = load_view(__DIR__ . '/views/formShowSysDefs.php', array(
'itm' => $item, 'itm' => $item,
'h_show' => $show_Header, '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> <help>Activate the callforward NOANSWER stuff and softkeys. Default is On</help>
</item> </item>
<item type="IS" id="5" seq="99"> <item type="IS" id="5" seq="99">
<name>dndFeature</name> <name>dnd</name>
<label>DND Button on Device</label> <label>DND Button on Device</label>
<default>off</default> <default>off</default>
<button value="on">On</button> <button value="on">On</button>
@ -1628,7 +1628,7 @@ and open the template in the editor. Base Version before all crash :-)
<name>directrtp</name> <name>directrtp</name>
<label>Direct RTP</label> <label>Direct RTP</label>
<default></default> <default></default>
<button value="no">NO</button> <button value="no">No</button>
<button value="Yes">Yes</button> <button value="Yes">Yes</button>
<help>This option allow devices to do direct RTP sessions (default Off)</help> <help>This option allow devices to do direct RTP sessions (default Off)</help>
</item> </item>
@ -2031,7 +2031,7 @@ and open the template in the editor. Base Version before all crash :-)
<item type="IS" id="5" seq="0"> <item type="IS" id="5" seq="0">
<name>dnd</name> <name>dnd</name>
<label>DND</label> <label>DND</label>
<default></default> <default>Reject</default>
<button value="off">Off</button> <button value="off">Off</button>
<button value="reject">Reject</button> <button value="reject">Reject</button>
<button value="silent">Silent</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'); $def_val = $this->getTableDefaults('sccpdevice');
if (!empty($_REQUEST['id'])) { if (!empty($_REQUEST['id'])) {
// Editing an existing Device. Overwrite any defaults that are already set for this device. // Editing an existing Device. Overwrite any defaults that are already set for this device.