From a73cf5731f5e156733f7d55c622b990e69198a1e Mon Sep 17 00:00:00 2001 From: hkosaka Date: Tue, 8 Jul 2014 03:50:42 +0000 Subject: [PATCH] 2014-07-08 Hirofumi Kosaka * include/functions_api.php: Fixed that 'set enable_module' had not worked. MERGED FROM BRANCH 5.0 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10323 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/include/functions_api.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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')));