#11111 Fix module_manager_editor_web that it obtains the plugin_parameter data with the id of the tagente_modulo table

This commit is contained in:
miguel angel rasteu 2023-05-04 16:01:35 +02:00
parent 96305c9528
commit b3e97d9550
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,7 @@ $disabledTextBecauseInPolicy = '';
$classdisabledBecauseInPolicy = '';
$page = get_parameter('page', '');
$id_policy_module = (int) get_parameter('id_policy_module');
$id_agent_module = (int) get_parameter('id_agent_module');
if (strstr($page, 'policy_modules') === false) {
if ((bool) $config['enterprise_installed'] === true) {
@ -103,6 +104,9 @@ if (isset($id_agent_module) === true && $id_agent_module !== 0) {
if ($id_policy_module > 0) {
$module = enterprise_hook('policies_get_module', [$id_policy_module]);
$plugin_parameter = $module['plugin_parameter'];
} else if ($id_agent_module > 0) {
$module = modules_get_agentmodule($id_agent_module);
$plugin_parameter = $module['plugin_parameter'];
} else {
$plugin_parameter = '';
}