Skip to content

Fix missing hydration of metadata for pricing rule #3975

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

Conversation

wanze
Copy link

@wanze wanze commented Apr 11, 2025

Description

The CatalogPricing model offers a way to get and set metadata. When saving, the metadata is written to the database. But when loading the model, the metadata is currently missing. This PR adds the missing metadata column when loading the data from the database.

@lukeholder
Copy link
Member

Thanks for this, going with #3982, which will be in Commerce 5.4 once that is released.

@lukeholder lukeholder closed this May 1, 2025
@lukeholder
Copy link
Member

Craft Commerce 5.4 is now out with this fix/improvement. Thanks!

https://plugins.craftcms.com/commerce/changelog?craft5

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