DirectorObjectForm: don't set vals twice on create

This commit is contained in:
Thomas Gelf 2022-02-06 11:46:22 +01:00
parent b7aa578dee
commit 818ee7a01a
1 changed files with 0 additions and 3 deletions

View File

@ -141,9 +141,6 @@ abstract class DirectorObjectForm extends DirectorForm
}
$this->object = $class::create($values, $this->db);
foreach ($values as $key => $value) {
$this->object->$key = $value;
}
} else {
if (! $this->object->hasConnection()) {
$this->object->setConnection($this->db);