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 regression in v3.19.2, typeUserAttrs of type string failed to restore user set formData #1531

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

lucasnetau
Copy link
Collaborator

@lucasnetau lucasnetau commented Mar 4, 2024

inputUserAttrs only tried to load values from attrs[value] and not attrs[attributeName] like other typeUserAttrs helpers, this meant that only the value from the definition was used and not any value set for the attribute in the formData.

All bases covered with typeUserAttrs by setting attrs[value] to attrs[attributeName] during attribute rendering and also inputUserAttrs modified to check for the attribute value.

Test cases added for string, number, boolean (checkbox) and array (select) typeUserAttrs

Fixes: #1530
Fixes: #1533

@lucasnetau lucasnetau mentioned this pull request Mar 4, 2024
@Fharhanamrin
Copy link

Screenshot 2024-03-04 at 20 08 48

problem solved, thank you sir
When will it be released into production?

@lucasnetau lucasnetau requested a review from kevinchappell March 5, 2024 02:42
@lucasnetau lucasnetau merged commit 63010e6 into kevinchappell:master Mar 6, 2024
1 check passed
@lucasnetau lucasnetau deleted the fix/1530 branch March 6, 2024 23:08
Copy link

github-actions bot commented Mar 6, 2024

🎉 This PR is included in version 3.19.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom attributes value is not set on edit only default value is populated Issue setData
3 participants