Merge branch 'ent-12002-bug-al-editar-modulos-por-operacion-masiva-e-intentar-deshabilitarlos' into 'develop'

Fix bulk operation only disabling/enabling modules

See merge request artica/pandorafms!6430
This commit is contained in:
Rafael Ameijeiras 2023-09-11 11:34:55 +00:00
commit a1365ce6bf
1 changed files with 4 additions and 1 deletions

View File

@ -701,6 +701,7 @@ function modules_update_agent_module(
}
// Disable action requires a special function
$result = false;
if (isset($values['disabled'])) {
$result_disable = modules_change_disabled($id, $values['disabled']);
@ -709,7 +710,9 @@ function modules_update_agent_module(
$result_disable = true;
}
$result = @db_process_sql_update('tagente_modulo', $values, $where);
if (empty($values) === false) {
$result = @db_process_sql_update('tagente_modulo', $values, $where);
}
if ($result == false) {
if ($result_disable === ERR_GENERIC) {