mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
IcingaZone: no endpoint fetching for new zones
This commit is contained in:
parent
31b0e7a180
commit
c285dc260d
@ -48,7 +48,7 @@ class IcingaZone extends IcingaObject
|
||||
// TODO: Move this away, should be prefetchable:
|
||||
protected function listEndpoints()
|
||||
{
|
||||
if ($this->endpointList === null) {
|
||||
if ($this->id && $this->endpointList === null) {
|
||||
$db = $this->getDb();
|
||||
$query = $db->select()
|
||||
->from('icinga_endpoint', 'object_name')
|
||||
|
Loading…
x
Reference in New Issue
Block a user