mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +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 {
|
} else {
|
||||||
$comments->where('host_name', $this->host_name);
|
$comments->where('host_name', $this->host_name);
|
||||||
}
|
}
|
||||||
$this->comments = $comments->applyFilter($this->getFilter())->getQuery()->fetchAll();
|
$this->comments = $comments->getQuery()->fetchAll();
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -297,7 +297,7 @@ abstract class MonitoredObject implements Filterable
|
|||||||
$downtimes
|
$downtimes
|
||||||
->where('host_name', $this->host_name);
|
->where('host_name', $this->host_name);
|
||||||
}
|
}
|
||||||
$this->downtimes = $downtimes->applyFilter($this->getFilter())->getQuery()->fetchAll();
|
$this->downtimes = $downtimes->getQuery()->fetchAll();
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user