2012-06-05 Vanessa Gil <vanessa.gil@artica.es>

* include/functions_modules.php: Fixed bug: When you
	copy a policy module, still liked to policy.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6420 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
vgilc 2012-06-06 12:07:51 +00:00
parent 49ba21100f
commit 1a871c7603
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-06-06 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_modules.php: Fixed bug: When you
copy a policy module, still liked to policy.
2012-06-06 Vanessa Gil <vanessa.gil@artica.es>
* operation/agentes/exportdata.php

View File

@ -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;