From 35e90f7b6008075bb6d61a55fe12988df3c8b5c7 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 17 Mar 2023 07:40:32 +0100 Subject: [PATCH] ExtensibleSet: do not load for loaded objects... ...w/o id (-> branch) refs #2711 --- library/Director/IcingaConfig/ExtensibleSet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Director/IcingaConfig/ExtensibleSet.php b/library/Director/IcingaConfig/ExtensibleSet.php index 91208162..d52a30e4 100644 --- a/library/Director/IcingaConfig/ExtensibleSet.php +++ b/library/Director/IcingaConfig/ExtensibleSet.php @@ -50,7 +50,7 @@ class ExtensibleSet $set->object = $object; $set->propertyName = $propertyName; - if ($object->hasBeenLoadedFromDb()) { + if ($object->hasBeenLoadedFromDb() && $id = $object->get('id')) { $set->loadFromDb(); }