2010-02-22 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_alerts.php: fix when try delete only the alerts from alert policies form. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2397 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4939bbb0cf
commit
ec84e1c7a3
|
@ -1,3 +1,8 @@
|
||||||
|
2010-02-22 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* include/functions_alerts.php: fix when try delete only the alerts from
|
||||||
|
alert policies form.
|
||||||
|
|
||||||
2010-02-22 Miguel de Dios <miguel.dedios@artica.es>
|
2010-02-22 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* images/groups_small/*.ok.png, images/groups_small/*.default.png,
|
* images/groups_small/*.ok.png, images/groups_small/*.default.png,
|
||||||
|
|
|
@ -410,6 +410,7 @@ function delete_alert_agent_module ($id_alert_agent_module, $filter = false) {
|
||||||
if ($id_alert_agent_module)
|
if ($id_alert_agent_module)
|
||||||
$filter['id'] = $id_alert_agent_module;
|
$filter['id'] = $id_alert_agent_module;
|
||||||
|
|
||||||
|
if ($id_alert_agent_module !== false) {
|
||||||
$idAlertCompunds = get_db_all_rows_sql('SELECT id_alert_compound
|
$idAlertCompunds = get_db_all_rows_sql('SELECT id_alert_compound
|
||||||
FROM talert_compound_elements
|
FROM talert_compound_elements
|
||||||
WHERE id_alert_template_module = ' . $id_alert_agent_module);
|
WHERE id_alert_template_module = ' . $id_alert_agent_module);
|
||||||
|
@ -418,6 +419,7 @@ function delete_alert_agent_module ($id_alert_agent_module, $filter = false) {
|
||||||
foreach($idAlertCompunds as $id)
|
foreach($idAlertCompunds as $id)
|
||||||
delete_alert_compound($id);
|
delete_alert_compound($id);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return (@process_sql_delete ('talert_template_modules',
|
return (@process_sql_delete ('talert_template_modules',
|
||||||
$filter)) !== false;
|
$filter)) !== false;
|
||||||
|
|
Loading…
Reference in New Issue