mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 15:54:03 +02:00
Sync: Only prefetch relations for IcingaObject
So DatalistEntry can be synced fixes #1048
This commit is contained in:
parent
b773b90ae5
commit
49afcd5855
@ -816,7 +816,10 @@ class Sync
|
||||
{
|
||||
PrefetchCache::initialize($this->db);
|
||||
|
||||
$dummy = IcingaObject::createByType($this->rule->object_type);
|
||||
if ($dummy instanceof IcingaObject) {
|
||||
IcingaObject::prefetchAllRelationsByType($this->rule->object_type, $this->db);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user