fix error when adding customfield choice

This commit is contained in:
2018-05-16 21:52:36 +02:00
parent a43dc3733f
commit cacf6d0f3a
3 changed files with 9 additions and 22 deletions

View File

@@ -157,7 +157,7 @@ class CustomFieldChoice extends AbstractCustomField
->add(self::OTHER_VALUE_LABEL, TranslatableStringFormType::class, array(
'label' => 'Other value label (empty if use by default)'))
->add(self::CHOICES, ChoicesType::class, array(
'entry_type' => new ChoicesListType($this->defaultLocales),
'entry_type' => ChoicesListType::class,
'allow_add' => true
));