EmicoEcommerce / Magento2Tweakwise

Magento 2 module for Tweakwise integration
Other
4 stars 16 forks source link

Fix: tweakwise slug save #188

Closed ah-net closed 3 weeks ago

ah-net commented 1 month ago

When saving an attribute (for example color) the system removed all colors (based on the current post) and added them again. This serves no purpose. If the function is to delete not used values (for example blue). Then the color blue is missing in the post and doesn't get removed.

In this pull request i have removed the delete function and added an check if an value already exists. If it does, dan it doesn't gets added.

@jansentjeu Can you confirm that the delete function doesn't do anything since it deletes values based on the post. And those values are added again after that.