From: Michael Friedrich Date: Tue, 7 Nov 2017 15:32:50 +0000 (+0100) Subject: Use the entry_time for icinga_comments updates X-Git-Tag: v2.8.0~19^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=42b1e7ce79ac8ebbfd4f1207bf1c957ca40eae1c;p=icinga2 Use the entry_time for icinga_comments updates This follows all other queries in their where condition using entry_time for comments/downtimes. --- diff --git a/lib/db_ido/dbevents.cpp b/lib/db_ido/dbevents.cpp index 0b2c75430..2d6653579 100644 --- a/lib/db_ido/dbevents.cpp +++ b/lib/db_ido/dbevents.cpp @@ -376,7 +376,7 @@ void DbEvents::AddCommentInternal(std::vector& queries, const Comment:: query1.WhereCriteria = new Dictionary(); query1.WhereCriteria->Set("object_id", checkable); query1.WhereCriteria->Set("name", comment->GetName()); - query1.WhereCriteria->Set("comment_time", DbValue::FromTimestamp(entry_time)); + query1.WhereCriteria->Set("entry_time", DbValue::FromTimestamp(entry_time)); } else { query1.Table = "commenthistory"; query1.Type = DbQueryInsert;