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

[6.x] Fix augmentation of Status Log fieldtype when using Database Orders #1014

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

duncanmcclean
Copy link
Owner

@duncanmcclean duncanmcclean commented Feb 13, 2024

In #983, I changed it so the order status log is stored in a separate database table from the actual orders for querying/performance reasons.

However, in testing something else, I realised that after that change, the HasMany relationship was being passed in as the $value to the Status Log fieldtype's augment method which caused an issue when trying to augment the status log since it's expecting an array of arrays instead.

This PR fixes that by transforming the HasMany relationship into the right format of arrays that the fieldtype can augment.

@duncanmcclean duncanmcclean merged commit 7dfd99d into 6.x Feb 13, 2024
10 checks passed
@duncanmcclean duncanmcclean deleted the fix/status-log-augmentation-with-database-orders branch February 13, 2024 22:55
Copy link

Released as part of v6.0.6.

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.

1 participant