2013-01-08 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* godmode/agentes/agent_template.php: Fixed duplication of modules
	when template is applied several times. 
	
	Bug id: #3599442



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7374 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2013-01-08 15:59:23 +00:00
parent 347de55742
commit a08e754be1
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2013-01-08 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/agentes/agent_template.php: Fixed duplication of modules
when template is applied several times.
Bug id: #3599442
2013-01-04 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/agentes/agent_template.php: Fixed duplication of modules

View File

@ -99,7 +99,7 @@ if (isset ($_POST["template_id"])) {
);
// Check if this module exists in the agent
$module_name_check = db_get_value_filter('id_agente_modulo', 'tagente_modulo', array('delete_pending' => 0, 'nombre' => $row2["name"]));
$module_name_check = db_get_value_filter('id_agente_modulo', 'tagente_modulo', array('delete_pending' => 0, 'nombre' => $row2["name"], 'id_agente' => $id_agente));
if ($module_name_check !== false) {
$modules_already_added[] = $row2["name"];