2012-06-25 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* lib/PandoraFMS/Core.pm: Added deletion of tags when a module is
	being deleted.

	Merged from branches.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6700 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-06-25 15:20:23 +00:00
parent 0b3bc4b342
commit 6b37d757ac
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2012-06-25 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* lib/PandoraFMS/Core.pm: Added deletion of tags when a module is
being deleted.
Merged from branches.
2012-06-21 Ramon Novoa <rnovoa@artica.es>
* DEBIAN/control,

View File

@ -1389,6 +1389,9 @@ sub pandora_delete_module ($$;$) {
# Delete events asociated to the module
db_do ($dbh, 'DELETE FROM tevento WHERE id_agentmodule = ?', $module_id);
# Delete tags asociated to the module
db_do ($dbh, 'DELETE FROM ttag_module WHERE id_agente_modulo = ?', $module_id);
# Set pending delete the module
db_do ($dbh, 'UPDATE tagente_modulo SET disabled = 1, delete_pending = 1, nombre = "delete_pending" WHERE id_agente_modulo = ?', $module_id);