Private GIT

Skip to content
Snippets Groups Projects
Commit 13b2ee56 authored by loiclau's avatar loiclau
Browse files

fix(api rest) fix service child

parent ccf45926
Branches
Tags
No related merge requests found
...@@ -379,6 +379,7 @@ class CentreonRtDowntime extends CentreonObject ...@@ -379,6 +379,7 @@ class CentreonRtDowntime extends CentreonObject
$withServices, $withServices,
$comment $comment
) { ) {
$withServices = 0;
// Check if a pipe is present // Check if a pipe is present
if (preg_match('/^(.+)\|(.+)$/', $resource, $matches)) { if (preg_match('/^(.+)\|(.+)$/', $resource, $matches)) {
$this->externalCmdObj->addSvcDowntime( $this->externalCmdObj->addSvcDowntime(
...@@ -462,6 +463,7 @@ class CentreonRtDowntime extends CentreonObject ...@@ -462,6 +463,7 @@ class CentreonRtDowntime extends CentreonObject
$withServices, $withServices,
$comment $comment
) { ) {
$withServices = 0;
$serviceList = $this->sgObject->getServicesByServicegroupName($resource); $serviceList = $this->sgObject->getServicesByServicegroupName($resource);
foreach ($serviceList as $service) { foreach ($serviceList as $service) {
$this->externalCmdObj->addSvcDowntime( $this->externalCmdObj->addSvcDowntime(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment