Skip to content

Commit a417a2d

Browse files
Merge pull request civicrm#260 from xurizaemon/7.x-4.6-CRM-16121
CRM-15030, CRM-16048. Reapply CRM-15030 which was reversed by CRM-16048.
2 parents 1cb00c5 + ce73184 commit a417a2d

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)