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

[NFC] CRM-21548 Remove unused variable and param from CRM_Utils_Address::format #11403

Merged
merged 1 commit into from
Dec 14, 2017

Conversation

JKingsnorth
Copy link
Contributor

@JKingsnorth JKingsnorth commented Dec 13, 2017

Overview

The $contactName variable in this function was un-used.
The logic that created it is therefore unused.
Removing that meant that one of the parameters in the method was unused.

This should be a non-functional change. But areas to test are

  • display_name generation
  • address format generation (eg: displayed on a contact, labels)

Before

Addresses and contact display names were formatting correctly.

After

Addresses and contact display names are formatting correctly.

Technical Details

n/a

Comments

n/a


@eileenmcnaughton
Copy link
Contributor

I went through the function & calling functions and agree the code is not used & this is a useful tidy up

@eileenmcnaughton eileenmcnaughton merged commit fbeb86d into civicrm:master Dec 14, 2017
sluc23 pushed a commit to ixiam/civicrm-core that referenced this pull request Jan 10, 2018
[NFC] CRM-21548 Remove unused variable and param from CRM_Utils_Address::format
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.

3 participants