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

Add layout price_rules only once to OrderItem #2148

Merged
merged 1 commit into from Dec 2, 2022

Conversation

m0nken
Copy link
Contributor

@m0nken m0nken commented Dec 2, 2022

When deciding if the new layout price_rules and field priceRuleItems need to be added to the class definition use the field's name for existence check and not the layout's name. Otherwise its existence is not properly detected which leads to multiple inserts if the migration is called multiple times or the field had already been added otherwise.

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets #2148

When deciding if the new layout and field need to be added to the class definition use the field's name for existence check and not the layout's name.
Otherwise its existence is not properly detected which leads to multiple inserts if the migration is called multiple times or the field had already been added otherwise.
@dpfaffenbauer dpfaffenbauer added this to the 3.0.3 milestone Dec 2, 2022
@dpfaffenbauer dpfaffenbauer merged commit a85e633 into coreshop:master Dec 2, 2022
@dpfaffenbauer
Copy link
Member

thanks a lot @m0nken

@dpfaffenbauer dpfaffenbauer modified the milestones: 3.0.3, 3.1.0 Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants