casa icon indicating copy to clipboard operation
casa copied to clipboard

Bug: Contact Types on casa case do not save/display correctly

Open Thrillberg opened this issue 3 years ago • 1 comments

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... Screen Shot 2022-10-14 at 2 57 44 PM ...and save the CASA case, ALL checkboxes are checked upon viewing the CASA case again: Screen Shot 2022-10-14 at 2 59 06 PM

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

  1. Log into staging as an admin
  2. Navigate to Cases
  3. Click New Case
  4. Fill in dummy data here but be sure to only select a few of the Contact Type checkboxes
  5. Click Create CASA Case
  6. Click Edit Case Details
  7. 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:

Link to QA site

Login Emails:

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.

Thrillberg avatar Oct 14 '22 19:10 Thrillberg

Thanks for filing this issue! It's great :)

compwron avatar Oct 14 '22 23:10 compwron

Hello, Me and @rishijain submitted a PR for this https://github.com/rubyforgood/casa/pull/4083

ashwinisukale avatar Oct 19 '22 07:10 ashwinisukale