Skip to content
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

[Import][Ref] Calculate relationship type in parser #23408

Closed

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 9, 2022

Overview

[Import][Ref] Calculate relationship type in parser

Before

The potential values for the related contact contact type are calculated here

$relationType = new CRM_Contact_DAO_RelationshipType();
$relationType->id = $id;
$relationType->find(TRUE);
$parserParameters['relatedContactType'][$key] = $relationType->{"contact_type_$second"};
and passed in as an array to the parser class

After

The parser class does the same calculation internally (with a little more caching)

Technical Details

Originally the parser class was given a bunch of arrays to represent the mapper saved on the form + this was munged into those - the arrays are mostly gone now but working through this & one other

Comments

@civibot
Copy link

civibot bot commented May 9, 2022

(Standard links)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant