From 87958a693f371a96390ca50f2e7d3c208e89ee71 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 28 Jul 2015 11:43:08 +0200 Subject: [PATCH] SyncPropertyForm: run setup before mangling elements --- application/forms/SyncPropertyForm.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/application/forms/SyncPropertyForm.php b/application/forms/SyncPropertyForm.php index 6be5f71b..fed34f2c 100644 --- a/application/forms/SyncPropertyForm.php +++ b/application/forms/SyncPropertyForm.php @@ -74,9 +74,10 @@ class SyncPropertyForm extends DirectorObjectForm public function setDb($db) { parent::setDb($db); - $this->getElement('rule_id')->setMultiOptions($this->optionalEnum($db->enumSyncRule())); - $this->getElement('source_id')->setMultiOptions($this->optionalEnum($db->enumImportSource())); - return $this; + $this->prepareElements(); + $this->getElement('rule_id')->setMultiOptions($this->optionalEnum($db->enumSyncRule())); + $this->getElement('source_id')->setMultiOptions($this->optionalEnum($db->enumImportSource())); + return $this; } }