Merge branch 'fix-alert-action' into 'develop'

Fixed problem of evaluation for last alert execution.

See merge request artica/pandorafms!3061
This commit is contained in:
Daniel Rodriguez 2020-02-25 11:22:40 +01:00
commit 4284c83f18
1 changed files with 1 additions and 1 deletions

View File

@ -1563,7 +1563,7 @@ sub pandora_execute_action ($$$$$$$$$;$) {
# Update action last execution date
if (defined ($action->{'last_execution'}) && defined ($action->{'id_alert_templ_module_actions'})) {
db_do ($dbh, 'UPDATE talert_template_module_actions SET last_execution = ?
WHERE id = ?', time (), $action->{'id_alert_templ_module_actions'});
WHERE id = ?', int(time ()), $action->{'id_alert_templ_module_actions'});
}
}