From d2d7565887311e153f633c47768bdbaea1261bee Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 28 Jul 2015 11:39:18 +0200 Subject: [PATCH] DirectorObjectForm: run setup() before object --- library/Director/Web/Form/DirectorObjectForm.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php index 23073b27..2cbee160 100644 --- a/library/Director/Web/Form/DirectorObjectForm.php +++ b/library/Director/Web/Form/DirectorObjectForm.php @@ -204,6 +204,7 @@ abstract class DirectorObjectForm extends QuickForm public function loadObject($id) { + $this->prepareElements(); $class = $this->getObjectClassname(); $this->object = $class::load($id, $this->db); if (! is_array($id)) {