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 user wizard error when user blueprint has bard field #9416

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

jesseleite
Copy link
Member

@jesseleite jesseleite commented Jan 29, 2024

Fixes a user wizard error when the user blueprint has a bard field, which was accidentally introduced by #9003, and reported by @edalzell.

The issue is that the PR introduced a toPublishArray() call on a set of preProcess()'d fields (in order to provide the new additional fields to the user wizard). The additional fields passed to the user wizard don't need to be preProcessed() though, since we pass values separately, so this fix uses a fresh Fields instance off the blueprint.

There's no tests for this fix, because it's a bit of a bandaid fix for a slightly deeper issue. Bard fields preProcess() empty values to a string JSON value of '[]', which then errors you try to toPublishArray(). We're unsure what the actual fix should be. We've been preprocessing bard fields to JSON since 3.0-beta, but what was the reason for that?

@jasonvarga jasonvarga merged commit 65acd81 into 4.x Jan 30, 2024
38 checks passed
@jasonvarga jasonvarga deleted the fix/user-wizard-with-bard-in-user-blueprint branch January 30, 2024 20:59
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.

None yet

2 participants