Skip to content

Commit 43e7fb6

Browse files
Chris Burgessxurizaemon
authored andcommitted
CRM-16122. Expose custom field values in human-friendly format.
Having to do implode(explode)) feels a bit hackish ... should CiviCRM be providing some formatting on values retrieved by this point?
1 parent 1cb00c5 commit 43e7fb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/views/civicrm/civicrm_handler_field_custom.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ class civicrm_handler_field_custom extends views_handler_field {
6161
$value = $values->{$this->field_alias};
6262
switch ($this->options['civicrm_custom_formatter']) {
6363
case 'value':
64+
$value = trim($value, CRM_Core_DAO::VALUE_SEPARATOR);
65+
$value = implode(', ', explode(CRM_Core_DAO::VALUE_SEPARATOR, $value));
6466
return $value;
6567

6668
case 'label':

0 commit comments

Comments
 (0)