mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
IcingaAddServiceForm: avoid duplicate get() call
This commit is contained in:
parent
b6f6b786c5
commit
351c41cb3c
@ -154,7 +154,7 @@ class IcingaAddServiceForm extends DirectorObjectForm
|
||||
{
|
||||
if ($this->host !== null) {
|
||||
if ($id = $this->host->get('id')) {
|
||||
$this->object->set('host_id', $this->host->get('id'));
|
||||
$this->object->set('host_id', $id);
|
||||
} else {
|
||||
$this->object->set('host', $this->host->getObjectName());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user