mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaAddServiceForm: use branches
This commit is contained in:
parent
6201fb52e4
commit
95c8884ea6
@ -161,10 +161,11 @@ class IcingaAddServiceForm extends DirectorObjectForm
|
|||||||
$plain = $this->object->toPlainObject();
|
$plain = $this->object->toPlainObject();
|
||||||
$db = $this->object->getConnection();
|
$db = $this->object->getConnection();
|
||||||
|
|
||||||
|
// TODO: Test this:
|
||||||
foreach ($this->hosts as $host) {
|
foreach ($this->hosts as $host) {
|
||||||
IcingaService::fromPlainObject($plain, $db)
|
$service = IcingaService::fromPlainObject($plain, $db)
|
||||||
->set('host_id', $host->get('id'))
|
->set('host_id', $host->get('id'));
|
||||||
->store();
|
$this->getDbObjectStore()->store($service);
|
||||||
}
|
}
|
||||||
|
|
||||||
$msg = sprintf(
|
$msg = sprintf(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user