Merge branch 'ent-13253-cli-pfms-comando-delete_agent-borra-casi-todos-los-eventos-del-agente-borrado' into 'develop'

Avoid remove events on delete

See merge request artica/pandorafms!7111
This commit is contained in:
Matias Didier 2024-04-03 07:27:24 +00:00
commit c37efd1b81
1 changed files with 0 additions and 3 deletions

View File

@ -3775,9 +3775,6 @@ sub pandora_delete_module {
# Delete templates asociated to the module
db_do ($dbh, 'DELETE FROM talert_template_modules WHERE id_agent_module = ?', $module_id);
# 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);