Also, seems like something like this:
{% if field.emptyValue %}
<option value="">{{ field.emptyValue }}</option>
{% endif %}
is missing just after the <select> tag on the choice field, because
emptyValue is not being showed.
Thanks,
Joaquín
On Wed, Dec 8, 2010 at 12:59 PM, Joaquin Bravo Contreras
<[email protected]> wrote:
> I get a Item "separator" for "Array" does not exist in
> TwigBundle::form.twig error when settings preferred choices on a
> ChoiceField.
>
> Seems like line 88 of
> Symfony/Bundle/TwigBundle/Resources/views/form.twig should read:
>
> <option disabled="disabled">{{
> field.separator|default('-------------------') }}</option>
>
> instead of
>
> <option disabled="disabled">{{
> params.separator|default('-------------------') }}</option>
>
> and a getSeparator method be added to ChoiceField.
>
> Thanks,
> Joaquín
>
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en