ImportRowModifierForm: fix multiOptions

This commit is contained in:
Thomas Gelf 2018-01-26 13:00:12 +01:00
parent 7fa2d91d37
commit 8ab088fe18
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ class ImportRowModifierForm extends DirectorObjectForm
));
try {
$sourceColumns = $this->enumSourceColumns();
$this->getElement('property_name')->multiOptions = $this->optionalEnum($sourceColumns);
$this->getElement('property_name')->setOptions([
'multiOptions' => $this->optionalEnum($sourceColumns)
]);
} catch (Exception $e) {
$this->getElement('property_name')->addError($e->getMessage());
}