Fixed: Unlink module from policy on module update (ticket: 3090 // 2673)

This commit is contained in:
fbsanchez 2015-12-21 11:41:08 +01:00
parent a168136750
commit ead9c74d9b
1 changed files with 5 additions and 0 deletions

View File

@ -2435,6 +2435,11 @@ sub cli_module_update() {
$update->{$field} = $new_value;
my $policy_id = enterprise_hook('get_id_policy_module_agent_module',[$dbh, safe_input($id_agent_module)]);
if ( $policy_id > 0) {
$update->{policy_linked} = 0;
}
pandora_update_module_from_hash ($conf, $update, 'id_agente_modulo', $id_agent_module, $dbh);
}