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

YTPOS-125 adjusted name to get correct site preference value #23

Open
wants to merge 1 commit into
base: release/21.6.1
Choose a base branch
from

Conversation

WarriorAchilles
Copy link
Collaborator

and updated variable names to be consistent

@WarriorAchilles WarriorAchilles changed the base branch from master to release/21.6.1 August 19, 2024 12:54
if ('productInformationFromMaster' in localeConfigObject.custom) {
yotpoConfig.productInformationFromMaster = localeConfigObject.custom.productInformationFromMaster;
if ('yotpoProductInformationFromMaster' in localeConfigObject.custom) {
yotpoConfig.yotpoProductInformationFromMaster = localeConfigObject.custom.yotpoProductInformationFromMaster;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interestingly, the localeConfigObject originates from Custom Object with type-id=yotpoConfiguration. That Custom Object defined in Metadata\metadata\meta\custom-objecttype-definitions.xml has no definition for the attribute yotpoProductInformationFromMaster (and no trace of the old attribute productInformationFromMaster). While this is safe code because of the in check, these lines will never be hit unless the actual object definition is updated.

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

Successfully merging this pull request may close these issues.

2 participants