Bug Fix - Default line not added on Device Create

Default line was only set after Device edit and save, not after Device creation.
This commit is contained in:
steve-lad 2021-06-15 08:56:19 +02:00
parent 61818026ff
commit fb8f4ec00e

View file

@ -569,7 +569,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
$db_field = $this->dbinterface->HWextension_db_SccpTableData("get_columns_sccpdevice");
$hw_id = (empty($get_settings['sccp_deviceid'])) ? 'new' : $get_settings['sccp_deviceid'];
$hw_type = (empty($get_settings['sccp_device_typeid'])) ? 'sccpdevice' : $get_settings['sccp_device_typeid'];
$update_hw = ($hw_id == 'new') ? 'update' : 'clear';
$update_hw = ($hw_id == 'new') ? 'add' : 'clear'; // Possible values are delete, replace, add, clear.
$hw_prefix = 'SEP';
if (!empty($get_settings[$hdr_prefix . 'type'])) {
$value = $get_settings[$hdr_prefix . 'type'];