infinite-networks / InfiniteFormBundle

A collection of useful form types and extensions for Symfony.
169 stars 40 forks source link

Made the listener use the configured type field name #2

Closed stof closed 11 years ago

stof commented 11 years ago

Hardcoding the name in it makes the type option useless.

jmclean commented 11 years ago

Good catch. We just need $options['type_name'] in the proper place in PolyCollectionType::buildForm (it appears that you added it to PolyCollectionType::buildPrototypes by mistake).

stof commented 11 years ago

Oops sorry, fixed. I should have launched my new test locally instead of relying on Travis and not checking its output because it was pending...

merk commented 11 years ago

Thanks @Stof!