mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Fix aggregation of the type and is_service livestatus comment columns
refs #5332
This commit is contained in:
parent
4a6fddadb8
commit
3aa21fb340
@ -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…
x
Reference in New Issue
Block a user