diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 00bde7d06b..8cd56f7f7c 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2012-04-20 Sergio Martin + + * lib/PandoraFMS/Core.pm: Setted last_reference to current utimestamp + in the alert table when create it + 2012-04-20 Koichiro Kikuchi * conf/pandora_server.conf.windows, diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 6b96684e9f..fa999e9018 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -1203,7 +1203,7 @@ sub pandora_create_template_module ($$$$;$$$) { $standby = 0 unless defined $standby; my $module_name = get_module_name($dbh, $id_agent_module); - return db_insert ($dbh, 'id', "INSERT INTO talert_template_modules (`id_agent_module`, `id_alert_template`, `id_policy_alerts`, `disabled`, `standby`) VALUES (?, ?, ?, ?, ?)", $id_agent_module, $id_alert_template, $id_policy_alerts, $disabled, $standby); + return db_insert ($dbh, 'id', "INSERT INTO talert_template_modules (`id_agent_module`, `id_alert_template`, `id_policy_alerts`, `disabled`, `standby`, `last_reference`) VALUES (?, ?, ?, ?, ?, ?)", $id_agent_module, $id_alert_template, $id_policy_alerts, $disabled, $standby, time); } ##########################################################################