2

As the title. If I create custom field set against a contact subtype, then import fields from a csv (saving the mapping for later use), none of the mapped fields are saved for the custom fieldset.

i.e.: on dmaster i can:

  • create a new custom field set contact subtype custom fields:

    • for use on individual > Volunteer
  • add field: contact subtype field

  • find (or create) a volunteer, and enter something into the new custom field

  • export the contact (select fields Contact_id & contact subtype field (& down load the file)

  • import the file, mapping the fields correctly

    • downloaded file
    • update contacts
    • contact type = individual > subtype: Volunteer
    • continue
  • set mapping to correctly map to the custom field contact subtype field
    • save mapping as... 'map 1'
    • continue
  • continue with import
  • done
  • change the contact subtype field label in the csv to foobar

  • import the csv - loading the saved mapping 'map 1'

mapping does not load + notice is thrown up onscreen:

Notice: Undefined index: in CRM_Import_ImportProcessor->loadSavedMapping() (line 451 of /srv/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Import/ImportProcessor.php).

anyone else suffer with this problem or have any ideas?

there's an issue logged here that has a fix, and is most likely related, but I'm not sure if this is a separate issue.

Thanks in advance :)

1

1 Answer 1

2

I have submitted a PR for this issue. Can you please try applying patch from here?

Thanks

Pradeep

3
  • That's wicked - thanks Pradeep. This all seems to work now - I can save mappings and they populate automatically - will post back here if I see any issues. :D
    – Marsh
    Apr 2, 2020 at 14:04
  • Thanks Pradeep! Apr 3, 2020 at 17:57
  • Can you mark this answered if it fixed your problem? Apr 9, 2020 at 7:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.