Skip to content

edit user set fail flash adjustment #13070

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

Merged
merged 3 commits into from
Apr 11, 2023

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Apr 11, 2023

Description

If $errors passed to actionEditUser is a one-dimensional array, calling implode on reset($errors) will throw an exception. This PR checks if the result of reset($errors) is an array or not and set the fail flash accordingly.

Only applicable for Craft 4.

Related issues

@brandonkelly brandonkelly marked this pull request as ready for review April 11, 2023 21:27
@brandonkelly brandonkelly requested a review from a team as a code owner April 11, 2023 21:27
@brandonkelly brandonkelly self-requested a review as a code owner April 11, 2023 21:29
@brandonkelly brandonkelly merged commit cbbdfd7 into develop Apr 11, 2023
@brandonkelly brandonkelly deleted the bugfix/edit-user-set-fail-flash branch April 11, 2023 21:29
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