Closed msilveirabr closed 3 years ago
[ISSUE] Replace everything between stars with current version of your facileManager and module installations: fM Version : 4.0.3 fmDHCP Version : 0.4.6
In raising this issue, I confirm the following (please check boxes, eg [X]):
(BUG | ISSUE) Expected Behavior: Unable to delete server, error 'The associated table records could not be removed because a database error occurred.'
(BUG | ISSUE) Actual Behavior:
(BUG | ISSUE) Steps to reproduce:
I'm not a developer, so here's my diff to possible fix, instead of a git pull.
PS: Fresh install
--- facileManager/fm-modules/fmDHCP/classes/class_servers.php.org 2021-06-25 00:45:24.295635038 -0300 +++ facileManager/fm-modules/fmDHCP/classes/class_servers.php 2021-06-25 00:40:57.183513958 -0300 @@ -213,9 +213,9 @@ basicGet('fm_' . $__FM_CONFIG[$_SESSION['module']]['prefix'] . 'servers', $server_serial_no, 'server_', 'server_serial_no'); if ($fmdb->num_rows) { /** Delete associated records from other tables */ - if (updateStatus('fm_' . $__FM_CONFIG[$_SESSION['module']]['prefix'] . 'table1', $server_serial_no, 'prefix_', 'deleted', 'server_serial_no') === false) { - return __('The associated table records could not be removed because a database error occurred.'); - } + // if (updateStatus('fm_' . $__FM_CONFIG[$_SESSION['module']]['prefix'] . 'table1', $server_serial_no, 'prefix_', 'deleted', 'server_serial_no') === false) { + // return __('The associated table records could not be removed because a database error occurred.'); + // } /** Delete server */ $tmp_name = getNameFromID($server_id, 'fm_' . $__FM_CONFIG[$_SESSION['module']]['prefix'] . 'servers', 'server_', 'server_id', 'server_name');
This is now fixed in fmDHCP 0.5.0 and later.
[ISSUE] Replace everything between stars with current version of your facileManager and module installations:
fM Version : 4.0.3 fmDHCP Version : 0.4.6
In raising this issue, I confirm the following (please check boxes, eg [X]):
(BUG | ISSUE) Expected Behavior: Unable to delete server, error 'The associated table records could not be removed because a database error occurred.'
(BUG | ISSUE) Actual Behavior:
(BUG | ISSUE) Steps to reproduce:
I'm not a developer, so here's my diff to possible fix, instead of a git pull.
PS: Fresh install