DirectorObjectForm: don't set vals twice on create
This commit is contained in:
parent
b7aa578dee
commit
818ee7a01a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue