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

Fix duplicate blocks from BlockQuery on Craft 3.1 #175

Closed

Conversation

Mosnar
Copy link

@Mosnar Mosnar commented Jan 17, 2019

P&T snuck in a last minute change to Craft 3.1 prior to release that adds soft-deletes to structures. This PR fixes an error with the primary element query where joins would produce multiple duplicate records.

This adds a left-join to both the main and subquery as well as additional where clauses to not select deleted structures.

Please test this thoroughly before merging.

Fixes #174

@Mosnar
Copy link
Author

Mosnar commented Jan 17, 2019

Closing this in favor of maintainer's solution to preserve backwards compatibility. See #174 for details.

@Mosnar Mosnar closed this Jan 17, 2019
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.

Getting Tons of Junk Blocks When Saving Existing Entries
1 participant