mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
DirectorObjectForm: no automagic hidden id if no such
This commit is contained in:
parent
a130f92d37
commit
0793c1cc55
@ -92,7 +92,9 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
{
|
||||
$class = $this->getObjectClassname();
|
||||
$this->object = $class::load($id, $this->db);
|
||||
$this->addHidden('id');
|
||||
if (! is_array($id)) {
|
||||
$this->addHidden('id');
|
||||
}
|
||||
$this->setDefaults($this->object->getProperties());
|
||||
return $this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user