Brille24 / SyliusCustomOptionsPlugin

A Sylius plugin that adds customer options
MIT License
47 stars 34 forks source link

Fixing add to cart when no custom option is passed through the form #129

Closed jeromin closed 1 year ago

jeromin commented 1 year ago

When no custom option data is sent through the add to cart form, it raised an error as the foreach variable is null.

Warning: foreach() argument must be of type array|object, null given

Just adding the same check as the listener above.

mamazu commented 1 year ago

Looks good. Thanks for contributing.

jeromin commented 1 year ago

Thank you for merging my very first PR in the Open Source world 😁