diff --git a/CRM/Contact/Selector.php b/CRM/Contact/Selector.php index 3f5e4831195c..8306df4ba8ef 100644 --- a/CRM/Contact/Selector.php +++ b/CRM/Contact/Selector.php @@ -488,6 +488,9 @@ public function &getColumnHeaders($action = NULL, $output = NULL) { elseif (isset($this->_query->_fields[$prop]) && isset($this->_query->_fields[$prop]['title'])) { $title = $this->_query->_fields[$prop]['title']; } + elseif (isset($this->_query->_pseudoConstantsSelect[$prop]) && isset($this->_query->_pseudoConstantsSelect[$prop]['pseudoconstant']['optionGroupName'])) { + $title = CRM_Core_BAO_OptionGroup::getTitleByName($this->_query->_pseudoConstantsSelect[$prop]['pseudoconstant']['optionGroupName']); + } else { $title = ''; }