diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7c10a53f06..12508dbd9e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-04-20 Sergio Martin + + * include/functions_alerts.php: Setted last_reference database + field to actual utimestamp when create an alert to avoid + unecessary charge on server + 2012-04-20 Sergio Martin * include/help/en/help_network_map.php diff --git a/pandora_console/include/functions_alerts.php b/pandora_console/include/functions_alerts.php index fc7b7fca2d..6ab41272f3 100644 --- a/pandora_console/include/functions_alerts.php +++ b/pandora_console/include/functions_alerts.php @@ -814,6 +814,7 @@ function alerts_create_alert_agent_module ($id_agent_module, $id_alert_template, $values = array (); $values['id_agent_module'] = (int) $id_agent_module; $values['id_alert_template'] = (int) $id_alert_template; + $values['last_reference'] = time(); return @db_process_sql_insert ('talert_template_modules', $values); }