Skip to content

Commit

Permalink
Merge pull request #10985 from colemanw/CRM-21178
Browse files Browse the repository at this point in the history
CRM-21178 - Make custom field of type Link clickable
  • Loading branch information
eileenmcnaughton authored Sep 15, 2017
2 parents d008ec1 + 8472b68 commit 8cce260
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Core/BAO/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,10 @@ private static function formatDisplayValue($value, $field, $entityId = NULL) {
}
break;

case 'Link':
$display = $display ? "<a href=\"$display\" target=\"_blank\">$display</a>" : $display;
break;

case 'TextArea':
$display = nl2br($display);
break;
Expand Down

0 comments on commit 8cce260

Please sign in to comment.