2011-06-20 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/functions_modules.php
	include/functions_tags.php: Correct a mistake that doesn't allow
	to create network modules correctly.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4469 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2011-06-20 14:50:31 +00:00
parent 031e4f568c
commit 78a21a6ea4
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2011-06-20 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_modules.php
include/functions_tags.php: Correct a mistake that doesn't allow
to create network modules correctly.
2011-06-20 Sergio Martin <sergio.martin@artica.es>
* operation/events/events_list.php: Fixed total events query

View File

@ -235,7 +235,7 @@ function modules_create_agent_module ($id_agent, $name, $values = false, $disabl
if ($id_agent_module === false)
return false;
if ($tags !== false)
if (($tags !== false) || (empty($tags)))
$return_tag = tags_insert_module_tag ($id_agent_module, $tags);
if ($return_tag === false){

View File

@ -271,19 +271,19 @@ function tags_insert_module_tag ($id_agent_module, $tags){
$values['id_tag'] = $tag;
$values['id_agente_modulo'] = $id_agent_module;
$result_tag = db_process_sql_insert('ttag_module', $values, false);
$result_tag = db_process_sql_insert('ttag_module', $values);
if ($result_tag === false)
$errn++;
}
if ($errn > 0){
/* if ($errn > 0){
db_process_sql_rollback();
return false;
}
else{
db_process_sql_commit();
return true;
}
}*/
}
/**