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

Bug: "No data found to update." when reverting a Profile value #114

Open
bcholmes opened this issue Jun 3, 2021 · 0 comments
Open

Bug: "No data found to update." when reverting a Profile value #114

bcholmes opened this issue Jun 3, 2021 · 0 comments
Labels

Comments

@bcholmes
Copy link
Contributor

bcholmes commented Jun 3, 2021

On the Participant Profile page, if the user makes a change, hits update, and then reverts that change and hits update again (without leaving the page), they'll get an error message ("No data found to update. Database not updated.").

Technical details: because the page submits changes using Ajax, the page is not refreshed after the update button is pressed. If you make a change to the page, press update, and then revert that change and press update, the form's "defaultValue" for the changed field is the same as the original value (even though the database no longer contains that value). The JavaScript for myProfile.js will skip sending the field to the server (because it matches the defaultValue) and the server won't make any changes.

While this seems like a rare set of circumstances, I think it can easily come up if the user makes a change and then changes their mind.

@olszowka olszowka added the bug label Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants