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

[4.x] Fix "Update All" in search utility #9269

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Jan 5, 2024

This pull request fixes an issue where the "Update All" button in the Search utility was erroring out.

The error was happening due to the locale not being appended to the indexes here:

<input type="hidden" name="indexes[]" value="{{ $index->name() }}">

While it was for the singular "Update" button in the indexes loop:

<input type="hidden" name="indexes[]" value="{{ $index->name() }}::{{ $index->locale() }}">

Fixes #9267.

@jasonvarga jasonvarga merged commit a001e7d into 4.x Jan 5, 2024
37 checks passed
@jasonvarga jasonvarga deleted the fix/update-all-on-search branch January 5, 2024 21:31
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.

Update to Statamic 4.42.1 seems to break "Update All" button in "Utilities -> Search"
2 participants