mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +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('host_id', $this->host->id);
|
||||
$this->addHidden('host', $this->host->getObjectName());
|
||||
$this->groupMainProperties();
|
||||
}
|
||||
|
||||
public function setHost(IcingaHost $host)
|
||||
@ -77,6 +78,7 @@ class IcingaServiceSetForm extends DirectorObjectForm
|
||||
$this->host = $host;
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function addSingleImportsElement()
|
||||
{
|
||||
$enum = $this->enumAllowedTemplates();
|
||||
|
Loading…
x
Reference in New Issue
Block a user