Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handleNoName() overrides admin channel value, when Product has no name set in one of the Channels #656

Open
sri-ndc opened this issue Aug 24, 2023 · 0 comments

Comments

@sri-ndc
Copy link

sri-ndc commented Aug 24, 2023

Information on your environment

Akeneo v6.0.61
Akeneo Connector v104.0.0
Magento ver. 2.4.5-p1

Summary of the issue

During Product Import in the insertData() function calls a function handleNoName().
This function is supposed to add a name for a magento product if none exists.
The function adds an Attribute value without adding scope and locale information.

Steps to reproduce

Configure product with name attribute and two channels, only have an attribute value in the admin channel.

Expected and actual results

When there is no name attribute value for a channel, it results in the admin channel value being overriden by an empty string.
I would expect the function to set empty name attribute values only for the specific channel where the name is missing.
For that the handleNoName function would need information about the variable $filter from the calling insertData() function.

@sri-ndc sri-ndc changed the title handleNoName() overrides admin channel value, when product has no name set in one of the channels handleNoName() overrides admin channel value, when Product has no name set in one of the Channels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant