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

Fix sort/filter not working on attendances page #2781

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

thomasleese
Copy link
Contributor

@thomasleese thomasleese commented Dec 19, 2024

This fixes a bug that was inadvertently introduced in ddbd6b9 where users could no longer sort and filter on the register attendances page. This was happening because we try and call select! on an ActiveRecord::AssociationRelation which doesn't have such a method, instead we have to first convert the list of patients to an array.

https://good-machine.sentry.io/issues/6161232701

This fixes a bug that was inadvertently introduced in
ddbd6b9 where users could no longer
sort and filter on the register attendances page. This was happening
because we try and call `select!` on an
`ActiveRecord::AssociationRelation` which doesn't have such a method,
instead we have to first convert the list of patients to an array.
@thomasleese thomasleese added the 🐞 bug Something isn't working label Dec 19, 2024
@thomasleese thomasleese added this to the v1.1.1 milestone Dec 19, 2024
@tvararu tvararu temporarily deployed to mavis-pr-2781 December 19, 2024 11:42 Inactive
@tvararu tvararu merged commit f87f4de into main Dec 20, 2024
13 checks passed
@tvararu tvararu deleted the sort-registration-bug branch December 20, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants