From 818ee7a01a02013f0f0b71c4616aaeadd4ecff40 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sun, 6 Feb 2022 11:46:22 +0100 Subject: [PATCH] DirectorObjectForm: don't set vals twice on create --- library/Director/Web/Form/DirectorObjectForm.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index 4f94f6e1..fc9b05ff 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -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);