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

(dev/core#1000) Fixes contact's displayname not appearing in membership edit, if no registered email is found #14438

Merged
merged 1 commit into from
Jun 6, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 5, 2019

Overview

When someone edits a contact's membership and that contact has no registered email, membership displays no contact name in membership edit mode.

Before

No display_name is coming back from the call to CRM_Contact_BAO_Contact_Location::getEmailDetails

After

display_name returns properly (along with an email, if available)

Technical Details

Rework on API call Email.get (becomes Contact.get along with API Chain to Email.get)

Comments

Related issue here

Pulls #14429 & #14374 into one PR against the rc

@civibot
Copy link

civibot bot commented Jun 5, 2019

(Standard links)

@civibot civibot bot added the 5.14 label Jun 5, 2019
@eileenmcnaughton eileenmcnaughton changed the title Display (dev/core#1000) Fixes contact's displayname not appearing in membership edit, if no registered email is found Jun 5, 2019
@@ -164,7 +164,7 @@ public function testBatchMergeSelectedDuplicates() {

// Retrieve pairs from prev next cache table
$select = array('pn.is_selected' => 'is_selected');
$cacheKeyString = CRM_Dedupe_Merger::getMergeCacheKeyString($dao->id, $this->_groupId);
$cacheKeyString = CRM_Dedupe_Merger::getMerge1CacheKeyString($dao->id, $this->_groupId);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eileenmcnaughton PHP fatal:

Fatal error: Call to undefined method CRM_Dedupe_Merger::getMerge1CacheKeyString() in /home/jenkins/bknix-dfl/build/core-14438-2q0bb/sites/all/modules/civicrm/tests/phpunit/CRM/Dedupe/MergerTest.php on line 167

…egistered email is found

Add a unit test to lock in fix to dev/core#1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants