mirror of
https://github.com/Icinga/icinga2.git
synced 2026-06-09 00:32:12 -04:00
Fix aggregation of the type and is_service livestatus comment columns
refs #5332
This commit is contained in:
parent
4a6fddadb8
commit
3aa21fb340
1 changed files with 4 additions and 2 deletions
|
|
@ -119,7 +119,8 @@ Value CommentsTable::EntryTimeAccessor(const Value& row)
|
|||
|
||||
Value CommentsTable::TypeAccessor(const Value& row)
|
||||
{
|
||||
Service::Ptr svc = Service::GetOwnerByCommentID(row);
|
||||
Comment::Ptr comment = static_cast<Comment::Ptr>(row);
|
||||
Service::Ptr svc = Service::GetOwnerByCommentID(comment->GetId());
|
||||
|
||||
if (!svc)
|
||||
return Empty;
|
||||
|
|
@ -129,7 +130,8 @@ Value CommentsTable::TypeAccessor(const Value& row)
|
|||
|
||||
Value CommentsTable::IsServiceAccessor(const Value& row)
|
||||
{
|
||||
Service::Ptr svc = Service::GetOwnerByCommentID(row);
|
||||
Comment::Ptr comment = static_cast<Comment::Ptr>(row);
|
||||
Service::Ptr svc = Service::GetOwnerByCommentID(comment->GetId());
|
||||
|
||||
if (!svc)
|
||||
return Empty;
|
||||
|
|
|
|||
Loading…
Reference in a new issue