diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 03eb189666..e0af6bd7bc 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2014-07-08 Hirofumi Kosaka + + * include/functions_api.php: Fixed that 'set enable_module' + had not worked. + + MERGED FROM BRANCH 5.0 + 2014-07-07 Miguel de Dios * include/functions_visual_map.php: show in the tooltip of diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index eec7b57ab6..371a2ae4de 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -6064,7 +6064,7 @@ function api_set_enable_module ($agent_name, $module_name, $thrast3, $thrash4) { $id_agent = agents_get_agent_id($agent_name); $id_agent_module = db_get_value_filter('id_agente_modulo', 'tagente_modulo', array('id_agente' => $id_agent, 'nombre' => $module_name)); - $result = modules_change_disabled($id_agent_module, 1); + $result = modules_change_disabled($id_agent_module, 0); if ($result === NOERR) { returnData('string', array('type' => 'string', 'data' => __('Correct module enable')));