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

Pass metadata values rather than convoluted array to processCustomFields #25318

Merged
merged 1 commit into from
Jan 18, 2023

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Pass metadata values rather than convoluted array to processCustomFields

Before

processCustomFields receives a complex array which has been obtained from a legacy function

After

By switching to passing in the actual values we can start to use an api call rather than a legacy function to load the metadata

Technical Details

As with a lot of CiviCRM code the code around this is bending over backwards to pack & unpack a particular array structure that is dated & not in keeping with a more api-v4-oriented approach

Comments

Code is heavily tested

@civibot
Copy link

civibot bot commented Jan 10, 2023

(Standard links)

@civibot civibot bot added the master label Jan 10, 2023
@eileenmcnaughton
Copy link
Contributor Author

test this please

2 similar comments
@eileenmcnaughton
Copy link
Contributor Author

test this please

@eileenmcnaughton
Copy link
Contributor Author

test this please

@colemanw colemanw merged commit 80040f8 into civicrm:master Jan 18, 2023
@eileenmcnaughton eileenmcnaughton deleted the cust_load branch January 18, 2023 18:41
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.

2 participants