From 872181da6c30622ff7bb4c9a08e91e673c920300 Mon Sep 17 00:00:00 2001
From: Guillaume28 <gbaldo@centreon.com>
Date: Wed, 7 Mar 2018 13:23:39 +0100
Subject: [PATCH] fix(RtDowntime): Missing instantiation of objects host and
 service

---
 www/class/centreon-clapi/centreonRtDowntime.class.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/class/centreon-clapi/centreonRtDowntime.class.php b/www/class/centreon-clapi/centreonRtDowntime.class.php
index c671186b0d..0bde6dab82 100644
--- a/www/class/centreon-clapi/centreonRtDowntime.class.php
+++ b/www/class/centreon-clapi/centreonRtDowntime.class.php
@@ -84,6 +84,8 @@ class CentreonRtDowntime extends CentreonObject
         parent::__construct($dependencyInjector);
         $this->object = new \Centreon_Object_RtDowntime($dependencyInjector);
         $this->hgObject = new \CentreonHostgroups($this->db);
+        $this->hostObject = new \CentreonClapi\CentreonHost($this->db);
+        $this->serviceObject = new \CentreonClapi\CentreonService($this->db);
         $this->hostObject = new \CentreonClapi\CentreonHost($dependencyInjector);
         $this->serviceObject = new \CentreonClapi\CentreonService($dependencyInjector);
         $this->sgObject = new \CentreonServiceGroups($this->db);
-- 
GitLab