Add a label "other value" on the _other option, fix #323

[ci skip]
This commit is contained in:
2014-11-14 12:13:05 +01:00
parent ce314899a8
commit aa16bdcbb9
2 changed files with 3 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ class ChoiceWithOtherType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options)
{
//add an 'other' entry in choices array
$options['choices']['_other'] = '__other__';
$options['choices']['_other'] = 'Other value';
//ChoiceWithOther must always be expanded
$options['expanded'] = true;