Hi all,

In Symfony2.0 (haven't check 2.1), if a custom field type is defined with 
default html attributes, that is attr array in default options, those are 
completely overriden when replacing the default options with the options 
passed in createNamedBuilder function.

Wouldn't be better to do:

    $options = array_replace_recursive($defaultOptions, $options);
instead of:

    $options = array_replace($defaultOptions, $options);
in line 242 of FormFactory class?

Then only attr elements passed explicitlly in the options array would be 
overriden.

Does that make sense?

-- 
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

Reply via email to