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:
commit
a1365ce6bf
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue