-
-
Notifications
You must be signed in to change notification settings - Fork 825
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-21524 - Fix merge contacts when one is deceased #11527
Conversation
Can one of the admins verify this patch? |
jenkins, test this please |
hi @lemacarl thanks for the patch. Can you please fix the style errors found https://test.civicrm.org/job/CiviCRM-Core-PR/18786/checkstyleResult/new/ |
@seamuslee001 Please recheck. I think I've fixed them |
Jenkins test this please |
There is still one reported - the warning says I have hit this before & while I don't recall all I would try rebasing & squashing ie . followed by git rebase -i origin/master in the second case you can squash the commits. use the -f switch to force push to your branch after |
@eileenmcnaughton Thanks! I've done the rebase. Hope it works. |
Jenkins test this please |
1 similar comment
Jenkins test this please |
@eileenmcnaughton Looks like the rebase hasn't worked. Please help |
At least it's clear the error is in a line you edited now - it seems to be saying there is a space after 'contact_type' => 'Individual', below
|
@eileenmcnaughton Thanks! I've used a tool to remove the trailing white spaces as well as run the modified files through Civilint. Please help me test this |
jenkins add to whitelist |
@eileenmcnaughton Is this good to go now? |
@lemacarl I took a look at this & agree with your analysis & that the test demonstrates the fix. One thing though - the code you have added
Is called a few lines further down - I believe it could be moved rather than duplicated? I believe the point of your change is to remove non-mailable people from the address table BEFORE concantenating the names of people at the same address but we won't need it AFTER as well Also - any chance you could quash the 2 commits to one? |
@eileenmcnaughton Thanks for spotting that. I've removed the duplicate conditional and squashed the commits into one. |
Jenkins test this please |
Looks great - seems like a really solid fix with a test to lock it in. Adding merge on pass |
Overview
When exporting contacts and merge contacts with the same address is selected then contacts with the same address are still merged even though one is deceased.