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:
parent
347de55742
commit
a08e754be1
|
@ -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
|
||||
|
|
|
@ -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"];
|
||||
|
|
Loading…
Reference in New Issue