DirectorObjectForm: pass db to object if no such

This commit is contained in:
Thomas Gelf 2015-07-28 11:38:21 +02:00
parent 38501e8e96
commit a8b2eeeaf7
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}