[icinga-checkins] icinga.org: icingaweb2-module-director/bla: IcingaObjectFieldLoader: pass db to resolved...

git at icinga.org git at icinga.org
Wed Dec 14 22:41:08 CET 2016


Module: icingaweb2-module-director
Branch: bla
Commit: 18d099f9f2b5163b94251d2dae659a572ede4099
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=18d099f9f2b5163b94251d2dae659a572ede4099

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Dec 14 22:40:34 2016 +0100

IcingaObjectFieldLoader: pass db to resolved...

...flat object

refs #13583

---

 library/Director/Web/Form/IcingaObjectFieldLoader.php |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/library/Director/Web/Form/IcingaObjectFieldLoader.php b/library/Director/Web/Form/IcingaObjectFieldLoader.php
index ab13f59..272cb52 100644
--- a/library/Director/Web/Form/IcingaObjectFieldLoader.php
+++ b/library/Director/Web/Form/IcingaObjectFieldLoader.php
@@ -221,7 +221,11 @@ class IcingaObjectFieldLoader
         $object = $this->object;
 
         $object->invalidateResolveCache();
-        $vars = $object::fromPlainObject($object->toPlainObject(true))->vars()->flatten();
+        $vars = $object::fromPlainObject(
+            $object->toPlainObject(true),
+            $object->getConnection()
+        )->vars()->flatten();
+
         $prefixedVars = (object) array();
         if ($object instanceof IcingaHost) {
             $prefix = 'host.vars.';



More information about the icinga-checkins mailing list