Closed willn closed 5 years ago
The user complained that she had selected "no" on the question about cleaning after doing a cooking shift, but I didn't see that "no" saved in her preferences. After some discussion, we figured that the "no" preference may have been lost after she revisited the survey multiple times.
I just tested many times and found that upon multiple revisits, some with making changes and others without... that I never lost the "no" preference.
At this point, I can only believe that she had checked that option and then forgot to hit save. Since those details are lost to the sands of time. Since I can't replicate the bug, I can't "fix" anything.
This is more edge-casey than I thought. This user has the following:
When attempting to save, I can't get both 1 and 3 at the same time. I could add a name in 1, but only if I don't add new comments.
I found that I could leave the comment "x" and it would save. However, if I entered "a'", then the comments would not save.
Fixed with PDO quote. Added provideGetSaveRequestsSQL unit test to cover this.
After having saved the survey, re-visiting the survey fails to pull up the previously saved preferences, making it easy to lose them when re-saving.