-
-
Notifications
You must be signed in to change notification settings - Fork 828
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRM-18959: Import fails when custom multi-value date field is imported. #8662
Conversation
Can one of the admins verify this patch? |
jenkins, please retest |
I tested this and it seems to work ok, the only thing i would have to say is that it will allow imports for contacts that don't have the same sub type as selected and or same sub type as the custom group. E.g. I was able to import to a contact that had no contact subtype set. To me I think we may want some validation on that part |
@seamuslee001 I'm not surprised. I don't have much skin in the game. Don't use this functionality but was doing peer review at the request of @JoeMurray. That said it would be good to identify exactly what steps this import should take.
So on and so forth as I'm sure there are other varieties. I did add help for Contact Type and SubType copied from the import contact page. |
jenkins, add to whitelist |
@darrick are you ok to fix the style warnings? https://test.civicrm.org/job/CiviCRM-Core-PR/10535/checkstyleResult/new/ |
@darrick is there anything left to fix ? @eileenmcnaughton should I close #8566 ? because it seems current changes does the same with a better solution. |
@monishdeb that sounds about right - @seamuslee001 is anything from your comments above a blocker to merging this & closing the other? |
I'm on vacation. There is a work around by setting both "Contact Type" and Contact Sub Type" fields in the csv file. It would be best to delineate the use cases CiviCRM is going to support on this form and then tune the PR accordingly. |
@darrick did you had a chance to look at this PR? Also can you rebase this PR as it gone stale. Steps to rebase:
|
@darrick doesn't have much skin in this game. Let's us do the work. |
When I look at this there are a number of small discreet code tidy-ups which seem worth pulling out, reviewing, & merging & then we need to figure out how to replicate the main part in a unit test |
I'm closing this as an alternate fix has been merged -basically retrieving the sub_type from the contact id (which is required for this import I believe) |
Different path for solving: CRM-18959
Other solution is PR-8566
Also reverts CRM-18708
The guts of the custom import have always supported importing to contact sub types (CRM-5125). However, at some point mapping the "Contact Sub Type" was dropped from the form. This PR restores that option.