Bug: Contact Types on casa case do not save/display correctly
Impacted User Types
- admins
- all casa admins
Environment
All, probably. Seems like the environment shouldn't matter to this bug.
Current Behavior
As a CASA admin, I start by creating a new CASA case. When I only select a few Contact Types...
...and save the CASA case, ALL checkboxes are checked upon viewing the CASA case again:

Expected Behavior
When I create a CASA case and re-visit the edit page, it should have the correct selection of checkboxes checked.
How to Replicate
- Log into staging as an admin
- Navigate to Cases
- Click
New Case - Fill in dummy data here but be sure to only select a few of the Contact Type checkboxes
- Click
Create CASA Case - Click
Edit Case Details - Look at the selected Contact Types--BOOM! 💥 --bug city
Other notes
My hunch is that something is wrong with the create action here and that thing is right with the edit action. I believe this because when you edit the record once, the Contact Type checkboxes start persisting. But they should persist on create, too, of course!
QA Login Details:
Login Emails:
- [email protected] view site as a volunteer
- [email protected] view site as a supervisor
- [email protected] view site as an admin
password for all users: 12345678
Questions? Join Slack!
We highly recommend that you join us in slack https://rubyforgood.herokuapp.com/ #casa channel to ask questions quickly and hear about office hours (currently Tuesday 6-8pm Pacific), stakeholder news, and upcoming new issues.
Thanks for filing this issue! It's great :)
Hello, Me and @rishijain submitted a PR for this https://github.com/rubyforgood/casa/pull/4083