diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index ebd0caaf..8445895f 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -23,6 +23,11 @@ abstract class DirectorObjectForm extends QuickForm if ($this->object === null) { $class = $this->getObjectClassname(); $this->object = $class::create($values, $this->db); + foreach ($this->getValues() as $key => $value) { + if ($this->object->hasProperty($key)) { + $this->object->$key = $value; + } + } } else { if (! $this->object->hasConnection()) { $this->object->setConnection($this->db);