-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
[BUG]: Incorrect Item Request no preserving values #4135
Labels
Comments
elasticspoon
added a commit
to elasticspoon/human-essentials
that referenced
this issue
Feb 27, 2024
Fixes rubyforgood#4135 When individuals requests were submitted with incorrect values the error page did not perserve correct or incorrect inputs. This was happening because the controller created a new request on error. Now the new request will be populated with the items from the failed request. I attempted to reuse the failed request, however, because the individuals request is a wrapper around a family request that behavior was not possible.
elasticspoon
added a commit
to elasticspoon/human-essentials
that referenced
this issue
Feb 27, 2024
Fixes rubyforgood#4135 When individuals requests were submitted with incorrect values the error page did not perserve correct or incorrect inputs. This was happening because the controller created a new request on error. Now the new request will be populated with the items from the failed request. I attempted to reuse the failed request, however, because the individuals request is a wrapper around a family request that behavior was not possible.
elasticspoon
added a commit
to elasticspoon/human-essentials
that referenced
this issue
Feb 28, 2024
Fixes rubyforgood#4135 When individuals requests were submitted with incorrect values the error page did not preserve correct or incorrect inputs. This was happening because the controller created a new request on error. Now the new request will be populated with the items from the failed request. I attempted to reuse the failed request, however, because the individuals request is a wrapper around a family request that behavior was not possible.
dorner
pushed a commit
that referenced
this issue
Mar 8, 2024
* fix: individuals request preserve values Fixes #4135 When individuals requests were submitted with incorrect values the error page did not preserve correct or incorrect inputs. This was happening because the controller created a new request on error. Now the new request will be populated with the items from the failed request. I attempted to reuse the failed request, however, because the individuals request is a wrapper around a family request that behavior was not possible. * refactor: system specs moved to request specs * fix: minor code review changes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Current Behavior
When an incorrect individuals request is submitted all values in the form are cleared
Expected Behavior
The values should be retained
Steps To Reproduce
Sign in as a partner. Click on "Create request" under "# of individuals.
Fill in a valid item and an invalid item
Click submit request.
You get a fresh form, instead of values being preserved
Environment
No response
Criteria for Completion
No response
Anything else?
Here is a test for it
managing_requests_system_spec.rb:171
:Code of Conduct
The text was updated successfully, but these errors were encountered: