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
[Import] Remove silly param
I've finally solved the mystery of this parameter - the crux of this change is this
Before
$relationships
is an array of available relationships - in format like['5_a_b' => 'Employer Of']
It is metadata passed into the custom data function and the reason turns out to be to confirm that the sub-array within
$params
'really really' is a relationship type sub-array. In actual fact I'm pretty sure the check to see if it is an array with a'contact_type'
key is enough to confirm itIt also handles the impossible situation where the key is the relationship label instead - maybe once that was possible
After
The additional check is now to see if the string ends in a_b or b_a instead
Technical Details
This is the custom data validation routine so not a place to check the validity of the relationship
Comments