akeneo / magento2-connector-community

Akeneo Connector for Magento 2
Open Software License 3.0
81 stars 88 forks source link

fixed 'syntax error' with an empty advanced filter #595

Open schnere opened 2 years ago

schnere commented 2 years ago

When using Advanced filter mode and leaving one filter empty an error is thrown on product import: Unable to serialize value. Error: syntax error

This is because Magento\Framework\Serialize\Serializer\Json throws the error when trying to unserialize an empty string. To solve this issue an empty array will be returned if no filter is set without calling the unserializer.

PieterCappelle commented 2 years ago

Correct, this should also be merged.