From dd1a896a06771dd7828eb598ec67674c0fc1fb3d Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 11 Jan 2017 01:10:22 +1300 Subject: [PATCH] CRM-19830 fix headers on search builder --- CRM/Contact/Selector.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contact/Selector.php b/CRM/Contact/Selector.php index 8cb3ec84e6cb..9d1ceb8f69c0 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 = ''; }