From 05f991c585b75a43811dfa94ed5add26bb7db40a Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 12 Oct 2016 14:26:44 +0000 Subject: [PATCH] IcingaObject: no loop detection on unstored... ...objects refs #11803 --- library/Director/Objects/IcingaObject.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index 9d6fb4fb..e38396f0 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -946,7 +946,9 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer } // Force exception - $this->triggerLoopDetection(); + if ($this->hasBeenLoadedFromDb()) { + $this->triggerLoopDetection(); + } $vals = array(); $vals['_MERGED_'] = (object) array();