2011-06-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_tags.php: Some modifications in update tag function. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4401 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
1185f97721
commit
f87fd1c393
|
@ -1,3 +1,7 @@
|
|||
2011-06-03 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_tags.php: Some modifications in update tag function.
|
||||
|
||||
2011-06-03 Javier Lanz <javier.lanz@artica.es>
|
||||
|
||||
* godmode/agentes/module_manager_editor_prediction.php: Edited to get
|
||||
|
|
|
@ -270,12 +270,7 @@ function tags_update_module_tag ($id_agent_module, $tags){
|
|||
$errn = 0;
|
||||
|
||||
/* First delete module tag entries */
|
||||
$result_tag = db_process_delete_temp ('ttag_module', 'id_agente_modulo', $id_agent_module);
|
||||
|
||||
if ($result_tag === false){
|
||||
db_process_sql_rollback();
|
||||
return false;
|
||||
}
|
||||
$result_tag = db_process_sql_delete ('ttag_module', 'id_agente_modulo', $id_agent_module);
|
||||
|
||||
$values = array();
|
||||
foreach ($tags as $tag){
|
||||
|
@ -286,15 +281,6 @@ function tags_update_module_tag ($id_agent_module, $tags){
|
|||
$errn++;
|
||||
}
|
||||
|
||||
if ($errn > 0){
|
||||
db_process_sql_rollback();
|
||||
return false;
|
||||
}
|
||||
else{
|
||||
db_process_sql_commit();
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue