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

Clean up function signature #23550

Merged
merged 1 commit into from
May 24, 2022
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented May 23, 2022

Overview

Minor simplification - rather than pass in $customFields and use it to get $fieldMetaData = $customFields[$customFieldID] - just pass in $customFields[$customFieldID];

Before

image

After

image

Technical Details

  • I moved the check for the field being there to being before calling the function
  • I re-ordered the input fields to reflect the fact that some might be phased out in time
  • Most of the change is just using $metadata directly

Comments

@civibot civibot bot added the master label May 23, 2022
@civibot
Copy link

civibot bot commented May 23, 2022

(Standard links)

@seamuslee001
Copy link
Contributor

Looks good to me

@seamuslee001 seamuslee001 merged commit ca13ec4 into civicrm:master May 24, 2022
@eileenmcnaughton eileenmcnaughton deleted the import_cust branch May 24, 2022 02:28
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