#11735 Fix Agent view modules

This commit is contained in:
miguel angel rasteu 2023-07-17 09:34:57 +02:00
parent df70aa6ee6
commit 8d89ed90d3
1 changed files with 12 additions and 9 deletions

View File

@ -98,15 +98,18 @@ if (check_login()) {
}
$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 ($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) {