Skip to content

Commit ce73184

Browse files
Chris Burgessxurizaemon
authored andcommitted
CRM-15030, CRM-16048. Reapply CRM-15030 which was reversed by CRM-16048.
1 parent 1cb00c5 commit ce73184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/views/civicrm/civicrm_handler_field_custom.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class civicrm_handler_field_custom extends views_handler_field {
6767
default:
6868
if (!is_null($value)) {
6969
// get the field id from the db
70-
if (!empty($this->options['label'])) {
71-
$customFieldID = CRM_Core_DAO::getFieldValue('CRM_Core_BAO_CustomField', $this->options['label'], 'id', 'label');
70+
if (!empty($this->definition['title'])) {
71+
$customFieldID = CRM_Core_DAO::getFieldValue('CRM_Core_BAO_CustomField', $this->definition['title'], 'id', 'label');
7272
require_once 'CRM/Core/BAO/CustomOption.php';
7373
return CRM_Core_BAO_CustomOption::getOptionLabel($customFieldID, $value);
7474
}

0 commit comments

Comments
 (0)