Sylius / Sylius-Sandbox

[DEPRACATED] Sylius sandbox application, playground and testing place for Sylius and Symfony2 beginners.
Sylius.org
MIT License
76 stars 24 forks source link

Default values at product creation form from Variant entity #78

Closed Evgenas closed 11 years ago

Evgenas commented 11 years ago

it looks like default values for Variant entity like AvailableOn (current date), Price (0.00), onHand (1) is not appearing on form when trying to create new product

I tried add empty_data to setDefaultOptions but it doesn't make effect

Also can't pre-define values before build form cause new product has not variants assigned yet before creation.

pjedrzejewski commented 11 years ago

Hey, can you check if this is fixed now? Because works for me with latest assortment bundle. I fixed it here.

Evgenas commented 11 years ago

Have updated your recent changes, updated composer, but still no default values are filled

pjedrzejewski commented 11 years ago

Hmmm I see it now. Seems like it worked only for a little period of time. I'll investigate how we can fix it... Thanks for reporting. Please share if you find out anything.

pjedrzejewski commented 11 years ago

Fixed! : )