diff --git a/library/Director/Import/Sync.php b/library/Director/Import/Sync.php index 4c543ca5..391ac43f 100644 --- a/library/Director/Import/Sync.php +++ b/library/Director/Import/Sync.php @@ -444,11 +444,11 @@ class Sync protected function loadExistingObjects() { - $this->objects = array(); - // TODO: Make object_type (template, object...) and object_name mandatory? if ($this->hasCombinedKey()) { + $this->objects = array(); + foreach (IcingaObject::loadAllByType( $this->rule->object_type, $this->db