mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
MonitoredObject: Don't apply restrictions to comments and downtimes
They're already filtered by object_type and the object's name. refs #9009
This commit is contained in:
parent
5c1cdbc1c8
commit
4d72832933
@ -261,7 +261,7 @@ abstract class MonitoredObject implements Filterable
|
||||
} else {
|
||||
$comments->where('host_name', $this->host_name);
|
||||
}
|
||||
$this->comments = $comments->applyFilter($this->getFilter())->getQuery()->fetchAll();
|
||||
$this->comments = $comments->getQuery()->fetchAll();
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -297,7 +297,7 @@ abstract class MonitoredObject implements Filterable
|
||||
$downtimes
|
||||
->where('host_name', $this->host_name);
|
||||
}
|
||||
$this->downtimes = $downtimes->applyFilter($this->getFilter())->getQuery()->fetchAll();
|
||||
$this->downtimes = $downtimes->getQuery()->fetchAll();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user