]> granicus.if.org Git - icinga2/commitdiff
Use the entry_time for icinga_comments updates
authorMichael Friedrich <michael.friedrich@icinga.com>
Tue, 7 Nov 2017 15:32:50 +0000 (16:32 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Tue, 7 Nov 2017 15:37:12 +0000 (16:37 +0100)
This follows all other queries in their where condition
using entry_time for comments/downtimes.

lib/db_ido/dbevents.cpp

index 0b2c75430bf9fd5438f35b6413adbc6f42fb9a26..2d665357968a3db7316953e92e4c7e8ccb29dae7 100644 (file)
@@ -376,7 +376,7 @@ void DbEvents::AddCommentInternal(std::vector<DbQuery>& 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;