-
-
Notifications
You must be signed in to change notification settings - Fork 398
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
Keep proposal new values for title and body when editing and receiving an error message #4592
Conversation
4300c1f
to
dc695c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of this! ❤️
@mrcasals it seems that the failed test is a flaky, can you please rerun it? Thanks! |
@leio10 re-scheduled! |
@mrcasals it failed again 😞, but I have no idea about that error. It doesn't seems to be related to this PR. What can I do to fix that? 🤔 |
Mhhh the problem seems to appear after merging #4578, let me ask @oriolgual and see if we find something. The merge commit for that PR failed with the same exact error as this PR, but later merges are green 😕 |
e01713a
to
25ebb93
Compare
Yeah! Now is green, thanks @mrcasals!! |
Yay, merged! Thanks!! |
🎩 What? Why?
When a user is trying to edit a proposal and receives an error message, values for title and body fields are reset to proposal original values, losing his last modifications.
This PR fixes this bug using the form value instead of the model value. This is done allowing the
present
helper to receive the form and the presenter class to be used.📌 Related Issues
📋 Subtasks
CHANGELOG
entry📷 Screenshots (optional)