dev/core#4132 Fix import for multi-custom boxes #25639
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
dev/core#4132 Fix import for multi-custom boxes
This is a combination of #24902 and a fix to the
Import_x.import
action for easier testing and to stop brain damage#24902 is not against the rc & should be, as a regression. I did a new PR rather than asking @jmcclelland to rebase his
Before
https://lab.civicrm.org/dev/core/-/issues/4132
enable Civi Import - note the first part of this is agnostic to the extension but there is a fix to the extension in the PR too
create a new custom contact field of type checkbox
do a contact import with a csv that looks like this (be sure to choose update on the first screen)
ID,Field
5,"a,b"
6,a
map it like this
run the import
click through to the error screen,
select the failed row & try the import again
Import of the row with one value fails, still fails on re-import
After
Rather than re-replicate the whole process just keep the error screen loaded. You can then pull the patch down and re-do the import action
It will re-import the row & it will go through! The right values should appear on contact 5 & contact 6
Technical Details
There are 2 parts here
Comments