SyncPropertyForm: run setup before mangling elements

This commit is contained in:
Thomas Gelf 2015-07-28 11:43:08 +02:00
parent 03ffbb1de6
commit 87958a693f
1 changed files with 4 additions and 3 deletions

View File

@ -74,6 +74,7 @@ class SyncPropertyForm extends DirectorObjectForm
public function setDb($db) public function setDb($db)
{ {
parent::setDb($db); parent::setDb($db);
$this->prepareElements();
$this->getElement('rule_id')->setMultiOptions($this->optionalEnum($db->enumSyncRule())); $this->getElement('rule_id')->setMultiOptions($this->optionalEnum($db->enumSyncRule()));
$this->getElement('source_id')->setMultiOptions($this->optionalEnum($db->enumImportSource())); $this->getElement('source_id')->setMultiOptions($this->optionalEnum($db->enumImportSource()));
return $this; return $this;