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:
Johannes Meyer 2015-06-17 10:11:59 +02:00
parent 5c1cdbc1c8
commit 4d72832933
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}