mothership-ec / cog-mothership-ecommerce

Mothership E-Commerce
Other
2 stars 1 forks source link

Check product option field exists on product page listener #255

Closed thomasjthomasj closed 9 years ago

thomasjthomasj commented 9 years ago

This PR fixes the issue where the ProductPageListener would break on pages that do not have a product option field.

This was breaking because the $productGroup->option check calls a magic getting on Field\Group which throws an exception because that field does not exist, and so it was impossible to save product pages