Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • CiviCRM Core CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,430
    • Issues 1,430
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • CiviCRM CoreCiviCRM Core
  • Issues
  • #1848
Closed
Open
Created Jul 01, 2020 by Andrew West@awestbha

Importing subtype-specific data to existing contacts loses their other subtypes

I just tried to import subtype-specific data for existing contacts, and their other subtypes went away. To recreate on demo:

  1. Find a contact and set them to the 'Student' contact type
  2. Note their contact ID
  3. Find a custom field in a different subtype and pick a random value. Demo currently has 'Camera Skill Level' on the 'Volunteer', with possible values 1-5
  4. Create a CSV with an ID column and a Camera Skill level column:

Annotation_2020-07-01_185424

  1. Import this CSV, setting Subtype to 'Volunteer', and 'Update'

Annotation_2020-07-01_184535

  1. Map the fields appropriately:

Annotation_2020-07-01_184635

  1. Check the original contact - they are now marked as 'Volunteer' and no longer Student.

This happens no matter whether the contact has the subtype originally - ie. if you are importing data with the purpose of inherently adding this subtype, or if it's already there.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking