mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
When module include in policy and not linked not modify with new data. Tiquet: #2889
This commit is contained in:
parent
6e60292673
commit
a59e770867
@ -1014,7 +1014,11 @@ if ($update_module || $create_module) {
|
||||
|
||||
// Make changes in the conf file if necessary
|
||||
enterprise_include_once('include/functions_config_agents.php');
|
||||
if (!enterprise_hook('policies_is_module_in_policy', array($id_agent_module))) {
|
||||
|
||||
$NotLinkedInPolicy = enterprise_hook('policies_is_module_in_policy', array($id_agent_module))
|
||||
&& !enterprise_hook('policies_is_module_linked',array($id_agent_module));
|
||||
|
||||
if ( $NotLinkedInPolicy ) {
|
||||
enterprise_hook('config_agents_write_module_in_conf',
|
||||
array($id_agente, io_safe_output($old_configuration_data),
|
||||
io_safe_output($configuration_data), $disabled));
|
||||
|
Loading…
x
Reference in New Issue
Block a user