[icinga-checkins] icinga.org: icingaweb2-module-director/master: ObjectController: fix inheritance for PUT-replace

git at icinga.org git at icinga.org
Thu Feb 4 10:03:24 CET 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Wed Feb  3 10:28:01 2016 +0100

ObjectController: fix inheritance for PUT-replace

---

 library/Director/Web/Controller/ObjectController.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Director/Web/Controller/ObjectController.php b/library/Director/Web/Controller/ObjectController.php
index 3135491..d556094 100644
--- a/library/Director/Web/Controller/ObjectController.php
+++ b/library/Director/Web/Controller/ObjectController.php
@@ -282,7 +282,7 @@ abstract class ObjectController extends ActionController
                         $object->setProperties($data);
                     } else {
                         $object->replaceWith(
-                            IcingaObject::createByType($type, $data)
+                            IcingaObject::createByType($type, $data, $db)
                         );
                     }
                 } else {



More information about the icinga-checkins mailing list