mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +02:00
DirectorObjectForm: pass db to object if no such
This commit is contained in:
parent
38501e8e96
commit
a8b2eeeaf7
@ -20,6 +20,9 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
$class = $this->getObjectClassname();
|
||||
$this->object = $class::create($values, $this->db);
|
||||
} else {
|
||||
if (! $this->object->hasConnection()) {
|
||||
$this->object->setConnection($this->db);
|
||||
}
|
||||
$this->object->setProperties($values);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user