mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
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:
parent
1544f8136a
commit
358d6871e8
@ -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>
|
2011-06-20 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* operation/events/events_list.php: Fixed total events query
|
* operation/events/events_list.php: Fixed total events query
|
||||||
|
@ -235,7 +235,7 @@ function modules_create_agent_module ($id_agent, $name, $values = false, $disabl
|
|||||||
if ($id_agent_module === false)
|
if ($id_agent_module === false)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if ($tags !== false)
|
if (($tags !== false) || (empty($tags)))
|
||||||
$return_tag = tags_insert_module_tag ($id_agent_module, $tags);
|
$return_tag = tags_insert_module_tag ($id_agent_module, $tags);
|
||||||
|
|
||||||
if ($return_tag === false){
|
if ($return_tag === false){
|
||||||
|
@ -271,19 +271,19 @@ function tags_insert_module_tag ($id_agent_module, $tags){
|
|||||||
|
|
||||||
$values['id_tag'] = $tag;
|
$values['id_tag'] = $tag;
|
||||||
$values['id_agente_modulo'] = $id_agent_module;
|
$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)
|
if ($result_tag === false)
|
||||||
$errn++;
|
$errn++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($errn > 0){
|
/* if ($errn > 0){
|
||||||
db_process_sql_rollback();
|
db_process_sql_rollback();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
db_process_sql_commit();
|
db_process_sql_commit();
|
||||||
return true;
|
return true;
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user