Merge branch '156-unrelated-alert-is-deleted' into 'develop'

[bug fix] deleting a module had caused unextected alert deletion. 

Closes 

See merge request 
This commit is contained in:
vgilc 2017-08-02 09:47:32 +02:00
commit c51bf1637b

@ -1527,7 +1527,8 @@ if ($delete_module) { // DELETE agent module !
if ($result === false)
$error++;
if (alerts_delete_alert_agent_module($id_borrar_modulo) === false)
if (alerts_delete_alert_agent_module(false,
array('id_agente_module' => $id_borrar_modulo)) === false)
$error++;
$result = db_process_delete_temp('ttag_module', 'id_agente_modulo',