diff --git a/application/forms/DirectorDatalistForm.php b/application/forms/DirectorDatalistForm.php index 110b61df..475e23bd 100644 --- a/application/forms/DirectorDatalistForm.php +++ b/application/forms/DirectorDatalistForm.php @@ -18,10 +18,7 @@ class DirectorDatalistForm extends DirectorObjectForm public function onSuccess() { - $this->getElement('owner')->setValue( - self::username() - ); - + $this->addHidden('owner', self::username()); parent::onSuccess(); }