Answers.Body: <p>After upgrading to 4.7.24 then to 4.7.25, I observed that the issue with the No displayName after editing or creating came back.
  This is strange that Release Candidate CiviCRm version 4.7.24 was the only fix.
  Does-it concern other people and other installation ?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-13T05:55:32.117Z
Answers.Text: Upgrading will overwrite your modification to the core file.  You'll need to figure out what's going on with your underlying data to resolve this fully.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-09T17:30:58.490Z
Answers.Text: Yes Jon, after any update the problem comes back. Now it is CiviCRM 5.2.1 and I still have to replace the line. I still have no clue where this comes from.
Answers.UserDisplayName: Ichi
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-12T05:40:28.600Z
Answers.LastActivityDate: 2017-10-12T05:40:28.600Z
Answers.UserDisplayName: Ichi
Body: <p>Since the last CiviCRm version 4.7.21 to 4.7.23, I have the display_name empty. There is also the trouble for the sort_name.</p>
  
  <p>I found the report of  SarahG (FountainTribe) here <a href="https://forum.civicrm.org/index.php?topic=33928.msg143820#msg143820" rel="nofollow noreferrer">https://forum.civicrm.org/index.php?topic=33928.msg143820#msg143820</a> 
  It states that :</p>
  
  <blockquote>
    <p>The return value from "CRM_Utils_Address::format" is returning an
    empty string for the display name and the sort name. Those empty
    strings cause the calling function to use email address instead.</p>
  </blockquote>
  
  <p>I applied her solution :</p>
  
  <hr>
  
  <p>In the file /CRM/Contact/BAO/Individual.php (around 210 -215) 
  I replaced the line:
  Code: 
  $displayName = CRM_Utils_Address::format($formatted, $format,  FALSE, FALSE, TRUE, $tokenFields );</p>
  
  <p>New line: 
  Code:
  $displayName = $firstName." ".$lastName;</p>
  
  <p>Did similar replacement for the $sortName variable. </p>
  
  <hr>
  
  <p>This solved the trouble. But as she stated, it is only a temporary solution.</p>
  
  <p>Does anyone still encountered this issue with CiviCRm version 4.7.23 ?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-10T07:47:01.667Z
Comments.Text: Hello, here's a follow-up after testing the Release Candidate CiviCRm version 4.7.24.
  All the issues with displayName and probably from the function CRM_Utils_Address::format are solved. So it seems that issue is resolved from the 4.7.24 that is due to be out in September.
Comments.UserDisplayName: Ichi
Tags: <issues>
Title: No displayName after editing or creating
ThreadText: # No displayName after editing or creating
  
  (Asked by: username_0 on 2017-08-09)
  
  Since the last CiviCRm version 4.7.21 to 4.7.23, I have the display\_name empty. There is also the trouble for the sort\_name.
  
  I found the report of SarahG (FountainTribe) here <https://forum.civicrm.org/index.php?topic=33928.msg143820#msg143820>
  It states that :
  
  > The return value from "CRM\_Utils\_Address::format" is returning an
  > empty string for the display name and the sort name. Those empty
  > strings cause the calling function to use email address instead.
  
  I applied her solution :
  
  ---
  
  In the file /CRM/Contact/BAO/Individual.php (around 210 -215)
  I replaced the line:
  Code:
  $displayName = CRM\_Utils\_Address::format($formatted, $format, FALSE, FALSE, TRUE, $tokenFields );
  
  New line:
  Code:
  $displayName = $firstName." ".$lastName;
  
  Did similar replacement for the $sortName variable.
  
  ---
  
  This solved the trouble. But as she stated, it is only a temporary solution.
  
  Does anyone still encountered this issue with CiviCRm version 4.7.23 ?
  
  **Tags:** issues
  
  > **Comments:**
  > **username_0**: Hello, here's a follow-up after testing the Release Candidate CiviCRm version 4.7.24. All the issues with displayName and probably from the function CRM_Utils_Address::format are solved. So it seems that issue is resolved from the 4.7.24 that is due to be out in September.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-10-12. Score: 1
  
  After upgrading to 4.7.24 then to 4.7.25, I observed that the issue with the No displayName after editing or creating came back.
  This is strange that Release Candidate CiviCRm version 4.7.24 was the only fix.
  Does-it concern other people and other installation ?
  
  > **Comments:**
  > **username_1**: Upgrading will overwrite your modification to the core file.  You'll need to figure out what's going on with your underlying data to resolve this fully.  
  > **username_0**: Yes Jon, after any update the problem comes back. Now it is CiviCRM 5.2.1 and I still have to replace the line. I still have no clue where this comes from.  
  
  ---
  
  