From a097fdf5e6edad0a2e035eb1d8b8e0cdb95a25cc Mon Sep 17 00:00:00 2001 From: fermin831 Date: Fri, 21 Sep 2018 11:15:15 +0200 Subject: [PATCH] Added recalculate counters when a status module is forced by console --- pandora_console/include/functions_modules.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index f8e632dad4..5c26b40cb9 100755 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -2687,8 +2687,14 @@ function get_module_realtime_link_graph ($module) { * with some user action through the console * @param int New status * @param int Agent module to force new status + * @param int Agent id to force state recalculations */ -function force_set_module_status ($status, $id_agent_module) { +function force_set_module_status ($status, $id_agent_module, $id_agent) { + // Force recalculate counters + db_process_sql_update('tagente', + array('update_module_count' => 1), + array('id_agente' => $id_agent) + ); return db_process_sql_update( 'tagente_estado', array( 'estado' => $status,