mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-07 05:54:25 +02:00
Enable propagate host downtime commands for Icinga 2 >= 2.6.0 and Icinga 1.x
fixes #10774
This commit is contained in:
parent
8f9920f1fc
commit
7dc4d3d63e
@ -33,6 +33,9 @@ class ScheduleHostDowntimeCommandForm extends ScheduleServiceDowntimeCommandForm
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (! $this->getBackend()->isIcinga2()
|
||||||
|
|| version_compare($this->getBackend()->getProgramVersion(), '2.6.0', '>=')
|
||||||
|
) {
|
||||||
$this->addElement(
|
$this->addElement(
|
||||||
'select',
|
'select',
|
||||||
'child_hosts',
|
'child_hosts',
|
||||||
@ -49,6 +52,7 @@ class ScheduleHostDowntimeCommandForm extends ScheduleServiceDowntimeCommandForm
|
|||||||
'value' => 0
|
'value' => 0
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user