From 46f898c5a60e90c894c28d1e352324d7fa346daf Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Wed, 12 Jul 2023 16:05:55 +0200 Subject: [PATCH] #11728 Fix module plugin server --- pandora_console/include/ajax/module.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index c92cee0950..0ab70681df 100755 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -97,6 +97,18 @@ if (check_login()) { return; } + $id_plugin = get_parameter('id_plugin', 0); + $id_module_plugin = db_get_value( + 'id_plugin', + 'tagente_modulo', + 'id_agente_modulo', + $get_module_macros + ); + if ($id_plugin !== $id_module_plugin) { + $get_plugin_macros = true; + $get_module_macros = 0; + } + if ($get_plugin_macros) { if (https_is_running()) { header('Content-type: application/json');