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