mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Use the entry_time for icinga_comments updates
This follows all other queries in their where condition using entry_time for comments/downtimes.
This commit is contained in:
parent
e0e7f9ae6b
commit
42b1e7ce79
@ -376,7 +376,7 @@ void DbEvents::AddCommentInternal(std::vector<DbQuery>& queries, const Comment::
|
|||||||
query1.WhereCriteria = new Dictionary();
|
query1.WhereCriteria = new Dictionary();
|
||||||
query1.WhereCriteria->Set("object_id", checkable);
|
query1.WhereCriteria->Set("object_id", checkable);
|
||||||
query1.WhereCriteria->Set("name", comment->GetName());
|
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 {
|
} else {
|
||||||
query1.Table = "commenthistory";
|
query1.Table = "commenthistory";
|
||||||
query1.Type = DbQueryInsert;
|
query1.Type = DbQueryInsert;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user