akeneo / magento2-connector-community

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

A single product update with emptied fields will not be emptied in Magento #601

Open rbouma opened 1 year ago

rbouma commented 1 year ago

Environment and configuration

Akeneo [Edition] CE

[Version] 5.0.7

[Environment] prod

Server [Nginx version] nginx/1.22.0

[Server Version] Linux 5.4.0-121-generic 137-Ubuntu SMP Wed Jun 15 13:33:07 UTC 2022 x86_64

[PHP version] 7.4.30

[MySQL version] 8.0.28-20

Magento Magento ver. 2.4.2-p2 Akeneo Connector version: v103.0.4

Steps to reproduce

  1. have 3 products with 3 custom fields lets say, custom_field1, custom_field2 and custom_field3 all filled with random text.
  2. Sync these 3 products to Magento 2. Check if the products in Magento have all 3 custom fields filled in.
  3. Change product 1 and empty all 3 custom fields.
  4. Sync again to Magento for only that particular product and you wil see the custom fields for product 1 is not cleared in Magento 2
  5. It works if a product is updated with all custom fields filled and the one without then its updated in Magento. But with 1 product it doesn't

Expected result

  1. If fields are emptied for 1 product and the sync to Magento 2 sync only that particular product because no other products has been updated, the field will be emptied in Magento too.

Actual result

  1. The fields are not emptied and stay the same for default and all store views in Magento 2