projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d008ec1
)
CRM-21178 - Make custom field of type Link clickable
author
Coleman Watts
<coleman@civicrm.org>
Fri, 15 Sep 2017 14:31:53 +0000
(10:31 -0400)
committer
Coleman Watts
<coleman@civicrm.org>
Fri, 15 Sep 2017 14:38:20 +0000
(10:38 -0400)
CRM/Core/BAO/CustomField.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/BAO/CustomField.php
b/CRM/Core/BAO/CustomField.php
index 4ce44b9d287ad4ff2a117d39944b0693a07c7869..21d093fc48051300b9ef6b16f7b80c7807ef1c1f 100644
(file)
--- a/
CRM/Core/BAO/CustomField.php
+++ b/
CRM/Core/BAO/CustomField.php
@@
-1266,6
+1266,10
@@
class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
}
break;
+ case 'Link':
+ $display = $display ? "<a href=\"$display\" target=\"_blank\">$display</a>" : $display;
+ break;
+
case 'TextArea':
$display = nl2br($display);
break;