Skip to content

Fix the repeated columns generated by people export #1966

@mabdellatif88

Description

@mabdellatif88

Describe the bug
When generating people export sometimes it repeats columns

To reproduce
Steps to reproduce the behavior:

  1. Navigate to the admin interface of PGP: https://geniza.princeton.edu/admin/
  2. Login
  3. Click into the people module
  4. Search for a person who is related to more than one place (e.g. Nahary)
  5. Check at least 1 person with related places
  6. From the combobox at the top, choose "Export selected people to CSV" and hit Go
  7. Refresh the page
  8. Repeat steps 5 and 6
  9. Open the CSV file that is downloaded the second time and scroll through the places columns they are repeated

Expected behavior
On refresh and redownload, places columns shouldn't repeat

Screenshots
How to generate:
Image

Generated CSV export:

Image

Device information
Happens on all browsers and devices

Metadata

Metadata

Assignees

Labels

🐛 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions