Skip to content

Commit

Permalink
Merge pull request #150 from samuelsov/phoneext
Browse files Browse the repository at this point in the history
remove phone_ext as a distinct field
  • Loading branch information
colemanw authored Dec 11, 2024
2 parents ae898b0 + 77e3d20 commit 76dd847
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Contactlayout/Page/Inline/ProfileBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ public static function getProfileBlock($profileId, $contactId) {
if ($name == 'deceased_date' && empty($details['deceased_date'])) {
continue;
}
// Hide the pseudo field phone extension that is included in phone
if (str_starts_with($name, 'phone_ext')) {
continue;
}
// Show Is Deceased message if no deceased date
if ($name == 'is_deceased') {
if ((!isset($fields['deceased_date']) || empty($details['deceased_date'])) && !empty($details['is_deceased'])) {
Expand Down

0 comments on commit 76dd847

Please sign in to comment.