Merge branch 'ent-12968-borrar-un-modulo-elimina-todos-sus-eventos' into 'develop'

Ent 12968 Borrar un módulo elimina todos sus eventos

See merge request artica/pandorafms!6986
This commit is contained in:
Jose Martin 2024-03-26 13:54:13 +00:00
commit 3ed2b8e47e
1 changed files with 5 additions and 2 deletions

View File

@ -484,10 +484,13 @@ function modules_delete_agent_module($id_agent_module)
db_process_sql_delete('tgraph_source', $where); db_process_sql_delete('tgraph_source', $where);
db_process_sql_delete('treport_content', $where); db_process_sql_delete('treport_content', $where);
db_process_sql_delete( // Disabled delete events when module is deleted.
/*
db_process_sql_delete(
'tevento', 'tevento',
['id_agentmodule' => $id_agent_module] ['id_agentmodule' => $id_agent_module]
); );
*/
$where = ['id_agente_modulo' => $id_agent_module]; $where = ['id_agente_modulo' => $id_agent_module];
db_process_sql_delete('tlayout_data', $where); db_process_sql_delete('tlayout_data', $where);
db_process_sql_delete('tagente_estado', $where); db_process_sql_delete('tagente_estado', $where);