diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 466d548299..6d14a95a4f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-06-06 Vanessa Gil + + * include/functions_modules.php: Fixed bug: When you + copy a policy module, still liked to policy. + 2012-06-06 Vanessa Gil * operation/agentes/exportdata.php diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index fe203f7343..574e864011 100644 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -80,6 +80,8 @@ function modules_copy_agent_module_to_agent ($id_agent_module, $id_destiny_agent /* Rewrite different values */ $new_module['id_agente'] = $id_destiny_agent; $new_module['ip_target'] = agents_get_address ($id_destiny_agent); + $new_module['policy_linked'] = 0; + $new_module['id_policy_module'] = 0; /* Unset numeric indexes or SQL would fail */ $len = count ($new_module) / 2; @@ -97,6 +99,8 @@ function modules_copy_agent_module_to_agent ($id_agent_module, $id_destiny_agent /* Rewrite different values */ $new_module['id_agente'] = $id_destiny_agent; $new_module['ip_target'] = agents_get_address ($id_destiny_agent); + $new_module['policy_linked'] = 0; + $new_module['id_policy_module'] = 0; /* Unset numeric indexes or SQL would fail */ $len = count ($new_module) / 2;