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

Fixup/table preference #4411

Merged
merged 2 commits into from
Oct 16, 2024
Merged

Fixup/table preference #4411

merged 2 commits into from
Oct 16, 2024

Conversation

achen2401
Copy link
Contributor

Address a stream of 400 errors (CSRF token is missing) related to saving patientlist table preferences.
Cause:
I think the error stemmed from when an ajax request was first made to retrieve patient data, which is precedes by a call to save table preferences, the document DOM was not ready (which includes the value of CSRF token in an hidden element) - hence the missing CSRF token error.
Fix:
To add check for DOM readiness before the request to save table preferences is made.

Copy link
Member

@mcjustin mcjustin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for identifying and digging into this @achen2401 , I've had problems with these preferences in the past.

@achen2401 achen2401 merged commit 919ce3a into develop Oct 16, 2024
2 checks passed
@achen2401 achen2401 deleted the fixup/table-preference branch October 16, 2024 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants