From cbdaf34339fb4fb7607a396ccf266fa336507200 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 31 Jul 2015 15:47:18 +0200 Subject: [PATCH] DirectorDatafield, DirectorObjectForm: just lines --- library/Director/Objects/DirectorDatafield.php | 1 + library/Director/Web/Form/DirectorObjectForm.php | 1 + 2 files changed, 2 insertions(+) diff --git a/library/Director/Objects/DirectorDatafield.php b/library/Director/Objects/DirectorDatafield.php index 770587a0..ca6c2c8e 100644 --- a/library/Director/Objects/DirectorDatafield.php +++ b/library/Director/Objects/DirectorDatafield.php @@ -33,6 +33,7 @@ class DirectorDatafield extends DbObject if (! array_key_exists($key, $this->settings) || $value !== $this->settings[$key]) { $this->hasBeenModified = true; } + $this->settings[$key] = $value; return $this; } diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index dfbdb134..d2bff59a 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -383,6 +383,7 @@ abstract class DirectorObjectForm extends QuickForm { $object = $this->object(); $values = array(); + if ($this->hasBeenSent()) { $post = $this->getRequest()->getPost(); foreach ($post as $key => $value) {