hackoregon / openelections

Open and Accountable Elections
https://openelectionsportland.org
MIT License
16 stars 1 forks source link

Bulk imported contribution employer data not visible in UI #1234

Open infused opened 9 months ago

infused commented 9 months ago

Description

Bulk-loaded contributions for employed individuals do not show the employer's name, city, state, or occupation letter date fields after import unless you toggle the occupation field from Employed to some other value and then back to Employed.

Screen Shots

This contributor's occupation is set to employed, but the employer fields are not visible:

Screen Shot 2023-12-09 at 1 55 42 PM

Once you toggle the occupation field to another selection and then back to Employed the fields show up with the data that was bulk-imported:

Screen Shot 2023-12-09 at 1 57 55 PM

Steps to reproduce

Use the "Bulk Add Contributions" button to import the following CSV file: bulk-contributions.csv

Once imported, use the View button to show the newly imported contribution.

Expected result

The Occupation field should show "Employed" and the Occupation Letter Date, Employer's Name, City, State, and Employer Country fields should be visible.

Actual result

The Occupation field shows "Employed", but the Occupation Letter Date, Employer's Name, City, State, and Employer Country fields are not visible.

Environment

Using Chrome 120.0 on the production Portland Small Donor Elections site https://openelectionsportland.org/