mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaServiceSetForm: use host, not host_id
This commit is contained in:
parent
6f173b8392
commit
de4b890e8b
@ -69,7 +69,8 @@ class IcingaServiceSetForm extends DirectorObjectForm
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->addHidden('object_type', 'object');
|
$this->addHidden('object_type', 'object');
|
||||||
$this->addHidden('host_id', $this->host->id);
|
$this->addHidden('host', $this->host->getObjectName());
|
||||||
|
$this->groupMainProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setHost(IcingaHost $host)
|
public function setHost(IcingaHost $host)
|
||||||
@ -77,6 +78,7 @@ class IcingaServiceSetForm extends DirectorObjectForm
|
|||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function addSingleImportsElement()
|
protected function addSingleImportsElement()
|
||||||
{
|
{
|
||||||
$enum = $this->enumAllowedTemplates();
|
$enum = $this->enumAllowedTemplates();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user