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; } }