Towards CRM-20155 clean up form code in order to consolidate function… #10890
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.
… use.
Overview
This is code clean up on the merge form, preliminary to extensionising the code & implementing improvements in an iterative way according to the LeXIM approach
Before
civicrm/contact/dedupefind is accessible from Find & merge duplicate contacts & works
After
No change
Technical Details
The code in the Find and Merge Duplicate Contacts form has mystified me for along time. As a step towards extracting dedupe code into separate extension/s I have gone through & tidied up the finding of duplicates to re-use a function used elsewhere rather than duplicate it on the form.
The main changes in here are
has the same effect as calling the removed lines 145-150, 160-162, 167-169 and 186
Comments
@JKingsnorth @jmcclelland both of you have looked at this code fairly recently - would appreciate your insights.