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 for elements not being deindexed when indexRelations config is false and queue is enabled #307

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

mike-moreau
Copy link

When the indexRelations config is set to false and the queue is used, the DeindexElement queue job is not reached in the before delete element event.

This results in the element not be deindexed in Algolia.

Removing the return here ensures the queue job gets pushed.

When indexRelations config is false and the queue is used, the DeindexElement queue job is not reached in the before delete element event.

This results in the element not be deindexed.

Removing the return here ensures the queue job gets pushed.
@janhenckens
Copy link
Member

Thanks for catching that! I'll make sure this gets release in the Craft 4 & 5 versions - I'm away on holiday at the moment so it could be another week or 2 before I get the fix out.

@janhenckens janhenckens self-assigned this Jun 15, 2024
@janhenckens janhenckens changed the base branch from master to develop July 15, 2024 16:47
@janhenckens janhenckens merged commit fa999f8 into studioespresso:develop Jul 15, 2024
4 checks passed
@janhenckens
Copy link
Member

Thanks @mike-moreau, this fix is included in today's release (4.1.1)

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